2016-05-04 9 views
0

codeigniterをSQL Server 2008に接続しようとしています。私のPHPバージョンPHP Version 5.6.14データベースconnect SQLSRV

このエラーが発生します。

[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 

PHP_ERROR_LOGでは私がextフォルダにこのphp_sqlsrv_56_nts.dll & php_sqlsrv_56_ts.dllをコピーします。

すべてのヘルプはあなたが両方のファイルを使用するために持っていけない

+0

PHPで使用されるコーディネータのバージョンは何ですか? – Rajesh

答えて

1

に感謝されるだろう、最後のTSとの一つは、あなたが使用することができ、安全なスレッドを意味します。また、php.iniファイルに次の行を追加する必要があります:

extension=php_sqlsrv_56_ts.dll 

乾杯!

関連する問題