开发者

sqlsrv_connect() not found

I'm working on a project that uses the SQL Server Driver for PHP, and want to upgrade the driver to the new version (2.0), because I need some of the functions that have been implemented there.

I replaced the old .dll in the php/ext directory and restarted the web server. B开发者_如何学Gout now I receive the following error:

Fatal error: Call to undefined function sqlsrv_connect() in E:\ProjekteExtern\hades\_apl\classes\sql\sqlsrv.class.php on line 34

The phpinfo() output shows sqlsrv, just like with the previous version.

Does anybody know why I'm getting this error or have any ideas to solve this problem?


For those still having errors with PHP and Microsoft SQL Server using PHP SQL, check the web server's log (Apache, IIS, etc). I have just found out that WampServer x64 is not compatible with PHP SQL Server Driver, so I'm installing the 32-bit version back again.

UPDATE: for WampServer 2.2, PHP is compiled thread-safe and with VC++ 9.0, so it works using either

php_pdo_sqlsrv_53_ts_vc9.dll

or

php_sqlsrv_53_ts_vc9.dll
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜