64位IIS7下的PHP 5.4配置及如何连接SQL Server 2008
1个回答
展开全部
根据微软驱动自带的帮助文档仔细核对: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文件,所以加载失败也不足为奇。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询