2016-05-04 1 views
0

J'essaie de connecter codeigniter à SQL Server 2008. Ma version de PHP PHP Version 5.6.14.Base de données connect SQLSRV

Je reçois cette erreur. Dans PHP_ERROR_LOG

[04-May-2016 04:19:50 UTC] PHP Warning: PHP Startup: pdo_sqlsrv: Unable to initialize module 
Module compiled with module API=20100525 
PHP compiled with module API=20131226 
These options need to match 
in Unknown on line 0 

[04-May-2016 04:19:50 UTC] PHP Warning: PHP Startup: sqlsrv: Unable to initialize module 
Module compiled with module API=20100525 
PHP compiled with module API=20131226 
These options need to match 
in Unknown on line 0 

[04-May-2016 04:19:51 UTC] PHP Warning: PHP Startup: pdo_sqlsrv: Unable to initialize module 
Module compiled with module API=20100525 
PHP compiled with module API=20131226 
These options need to match 
in Unknown on line 0 

[04-May-2016 04:19:51 UTC] PHP Warning: PHP Startup: sqlsrv: Unable to initialize module 
Module compiled with module API=20100525 
PHP compiled with module API=20131226 
These options need to match 
in Unknown on line 0 

copier ce php_sqlsrv_56_nts.dll & php_sqlsrv_56_ts.dll au dossier ext.

Toute aide serait apprécier

+0

quelle est la version de votre codeur utilisée en php – Rajesh

Répondre

1

Vous ne devez pas utiliser les deux fichiers, l'un avec ts à la fin signifie thread-safe, que vous pouvez utiliser. Aussi, vous devrez ajouter la ligne suivante à votre fichier php.ini:

extension=php_sqlsrv_56_ts.dll 

À votre santé!