downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Configuration à l'exécution> <Pré-requis
[edit] Last updated: Fri, 24 May 2013

view this page in

Installation

L'extension SQLSRV est activée en ajoutant la bibliothèque DLL appropriée dans votre dossier d'extensions PHP et en ajoutant l'entrée correspondante dans votre fichier php.ini. Le téléchargement de SQLSRV est fourni avec 8 pilotes, dont 4 dédiés au support de PDO. Si vous exécutez PHP en version non thread-safe (PHP 5.3), utilisez le fichier php_pdo_sqlsrv_53_nts.dll (vous devez utiliser une version non-thread-safe si vous utilisez IIS comme serveur web). Si vous exécutez PHP en version thread-safe, utilisez le fichier php_pdo_sqlsrv_53_ts.dll. De même pour PHP 5.4, utilisez le fichier php_pdo_sqlsrv_54_nts.dll ou php_pdo_sqlsrv_54_ts.dll suivant si votre installation de PHP est non-thread-safe ou thread-safe.

La version la plus récente du pilote est disponible au téléchargement ici : » téléchargement de SQLSRV 3.0. Si vous avez besoin d'un support de PHP 5.2 et/ou de PHP compilé avec VC6, utilisez la version 2.0 du pilote : » téléchargement de SQLSRV 2.0.

Pour plus d'informations sur les pré-requis SQLSRV, reportez-vous au chapitre sur les » pré-requis du système SQLSRV.

L'extension SQLSRV n'est compatible que lorsque PHP fonctionne sous Windows.



add a note add a note User Contributed Notes Installation - [1 notes]
up
-2
Anonymous
9 months ago
Take note that Microsoft does not yet (as of 2012-08-15) provide any 64-bit release for their 2.0 or 3.0 drivers. They are 32-bit only.
This will cause problems while loading the the sqlsrv extension with a 64-bit apache installation, like WAMP, as it will simply give the error:

PHP Warning:  PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.4.3/ext/php_sqlsrv_54_ts.dll' - %1 is not a valid Win32 application.\r\n in Unknown on line 0

 
show source | credits | stats | sitemap | contact | advertising | mirror sites