Driver for sqlsrv 4.0 doesn't apper on phpinfo()

烈酒焚心 提交于 2019-12-31 05:37:07

问题


I need help with Microsoft driver for mssql 4.0. I use php 7.1, win'2012 x64, mssql 2008 R2 and installed odbc driver 13 as it is described in documentation and copyed all dlls in ext folder. In php.ini I added:

 extension_dir = "c:\inetpub\php\ext"

 extension=php_sqlsrv_7_nts_x64.dll

Restarted IIS.
And still after calling phpinfo() I can't see sqlsrv.

Maybe I missed something in php.ini?


回答1:


After looking through some of the issues posted on GitHub it appears that the drivers supplied from the Microsoft website are currently incompatible with PHP 7.1, despite the System Requirements on the page claiming:

Version 4.0 supports PHP 7.0+ on Windows and Linux


The latest binaries for the sqlsrv and pdo_sqlsrv drivers can be found through the official GitHub repositiory with the latest* being v4.1.5 (released 19 Jan 2017). Download the .zip related to your PHP version.

* Latest at time of posting



来源:https://stackoverflow.com/questions/41873939/driver-for-sqlsrv-4-0-doesnt-apper-on-phpinfo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!