64位IIS7下的PHP 5.4配置及如何连接SQL Server 2008

 我来答
蘇東坡丶421
2013-11-03 · TA获得超过145个赞
知道答主
回答量:129
采纳率:90%
帮助的人:57.8万
展开全部
根据微软驱动自带的帮助文档仔细核对:To load the Microsoft Drivers for PHP for SQL Server when PHP is started, first move a driver file into your extension directory. Then, follow these steps:To enable the SQLSRV driver, modify php.ini by adding the following line to the extension section, or modifying the line that is already there (this example uses the version 3.0 thread safe driver for PHP 5.3):extension=php_sqlsrv_53_ts.dllTo enable the PDO_SQLSRV driver, modify php.ini by adding the following line to the extension section, or modifying the line that is already there (this example uses the version 3.0 thread safe driver for PHP 5.3):extension=php_pdo_sqlsrv_53_ts.dllIf you want to use the PDO_SQLSRV driver, the php_pdo.dll must be available, either as a built-in extension, or as a dynamically-loaded extension. If you need to load the PDO_SQLSRV driver dynamically, the php_pdo.dll must be present in the extension directory and the the following line needs to be in the php.ini:extension=php_pdo.dllRestart the Web server.发现PHP的安装目录下根本没有php_pdo.dll文件,所以加载失败也不足为奇。
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式