在Windows 8上安装适用于SQL Server的PHP的Microsoft驱动程序

时间:2021-07-12 22:00:57

Does Windows 8 supports sql server driver for php. I found that system Requirements for sql Driver does not contain Windows 8. I installed and configured sql driver for php on wamp server, but sqlsrv doesn't show in phpinfo().

Windows 8是否支持php的sql server驱动程序。我发现sql驱动程序的系统要求不包含Windows 8.我在wamp服务器上为php安装并配置了sql驱动程序,但sqlsrv没有在phpinfo()中显示。

1 个解决方案

#1


0  

It's working fine for me on windows 8, if you don't activate the good extension in php.ini, by default (int XAMP) the slqsrv extension is selected extension=php_pdo_sqlsrv.dll, in my case, I am using PHP 5.4 and have configured the following extension:

它在Windows 8上运行正常,如果你没有激活php.ini中的好扩展,默认情况下(int XAMP)slqsrv扩展名被选中extension = php_pdo_sqlsrv.dll,在我的情况下,我使用PHP 5.4和已配置以下扩展名:

extension=php_pdo_sqlsrv_54_ts.dll

See Readme file provided with the installation drivers to see which extension to activate in your case.

请参阅随安装驱动程序提供的自述文件,以查看要在您的案例中激活的扩展名。

Restart the server and it's done.

重启服务器就完成了。

#1


0  

It's working fine for me on windows 8, if you don't activate the good extension in php.ini, by default (int XAMP) the slqsrv extension is selected extension=php_pdo_sqlsrv.dll, in my case, I am using PHP 5.4 and have configured the following extension:

它在Windows 8上运行正常,如果你没有激活php.ini中的好扩展,默认情况下(int XAMP)slqsrv扩展名被选中extension = php_pdo_sqlsrv.dll,在我的情况下,我使用PHP 5.4和已配置以下扩展名:

extension=php_pdo_sqlsrv_54_ts.dll

See Readme file provided with the installation drivers to see which extension to activate in your case.

请参阅随安装驱动程序提供的自述文件,以查看要在您的案例中激活的扩展名。

Restart the server and it's done.

重启服务器就完成了。