sqlsrv 4.0 的驱动程序未出现在 phpinfo() 上
Driver for sqlsrv 4.0 doesn't apper on phpinfo()
我需要有关 mssql 4.0 的 Microsoft 驱动程序的帮助。我使用 php 7.1
、win'2012 x64
、mssql 2008 R2
并按照文档中的描述安装了 odbc driver 13
,并将所有 dll 复制到 ext
文件夹中。在 php.ini
中我添加了:
extension_dir = "c:\inetpub\php\ext"
extension=php_sqlsrv_7_nts_x64.dll
重新启动 IIS。
在调用 phpinfo()
之后我仍然看不到 sqlsrv。
也许我在 php.ini 中遗漏了什么?
在浏览了一些 issues posted on GitHub 之后,尽管页面上的系统要求声称:
Version 4.0 supports PHP 7.0+ on Windows and Linux
sqlsrv 和 pdo_sqlsrv 驱动程序的最新二进制文件可以通过 official GitHub repositiory with the latest* being v4.1.5(2017 年 1 月 19 日发布)找到。下载与您的 PHP 版本相关的 .zip。
* 最新发布时间
我需要有关 mssql 4.0 的 Microsoft 驱动程序的帮助。我使用 php 7.1
、win'2012 x64
、mssql 2008 R2
并按照文档中的描述安装了 odbc driver 13
,并将所有 dll 复制到 ext
文件夹中。在 php.ini
中我添加了:
extension_dir = "c:\inetpub\php\ext"
extension=php_sqlsrv_7_nts_x64.dll
重新启动 IIS。
在调用 phpinfo()
之后我仍然看不到 sqlsrv。
也许我在 php.ini 中遗漏了什么?
在浏览了一些 issues posted on GitHub 之后,尽管页面上的系统要求声称:
Version 4.0 supports PHP 7.0+ on Windows and Linux
sqlsrv 和 pdo_sqlsrv 驱动程序的最新二进制文件可以通过 official GitHub repositiory with the latest* being v4.1.5(2017 年 1 月 19 日发布)找到。下载与您的 PHP 版本相关的 .zip。
* 最新发布时间