0

问:如何将 php 5.4.4 (xampp 1.8.0) 转换为 MSSQL Server 2005?

状态:我从这里下载 SQLSRV30.EXE 。并将 .dll 文件安装到我的 php/ext 文件夹中。我在 php.ini 设置了扩展。但无法连接到 MSSQL server 2005。

4

1 回答 1

0

您需要使用 FreeTDS 库。这很简单。参考链接:http : //docs.moodle.org/24/en/Installing_MSSQL_for_PHP 但是我没有找到 php 5.4 的库 php_dblib.dll。

我编译它。您可以在这里下载:http: //inethub.olvi.net.ua/ftp/pub/soft/programming/php/ms%20sql%20driver%20for%20%20php%205.4.10/或在这里:ftp:/ /inethub.olvi.net.ua/pub/soft/programming/php/ms%20sql%20driver%20for%20%20php%205.4.10/它是用带有nts的VC9编译的。

这是镜像:TS - http://www.sendspace.com/file/vtger3 NTS - http://www.sendspace.com/file/nkg2j4

SQLSRV30.EXE - 参考http://msdn.microsoft.com/en-us/library/cc296170%28v=sql.90%29.aspx 可能您需要安装 Microsoft SQL Server 2008 R2 Native Client。

于 2013-01-09T11:12:04.427 回答