For Some reasons need to use PHP and Sqlserver2008 database, the Internet to find some information, basically, you need to download Microsoft's driver in the Ext folder, and then add the following configuration in php.ini:
[Php_pdo_sqlsrv]
Extension=php_pdo_sqlsrv_56_ts.dll
[Php_sqlsrv]
Extension=php_sqlsrv_56_ts.dll
But even follow the steps to succeed, because the official sqlsrv3.0/3.2, etc. are 32-bit, and not for 64 users to provide relevant downloads, occasionally in the http://blog.csdn.net/aw951753aw/article/details/44339889 saw the introduction,
We need to download the 64-bit sqlsrv3.0/3.2 ourselves. Download Address Http://pan.baidu.com/s/1dDIRpJF.
Let me explain the main steps:
1. Install PHP
2. Installing SQL server2008
3. Download the 64-bit sqlsrv3.0/3.2. Download Address Http://pan.baidu.com/s/1dDIRpJF.
4. Download Sqlsrv3.0/3.2 is an extract exe after running, you can get to the relevant DLL file
5. Place the required DLL files in Php\ext and System32.
6. Modify the php.ini file to add the following
[Php_pdo_sqlsrv]
Extension=php_pdo_sqlsrv_56_ts.dll
[Php_sqlsrv]
Extension=php_sqlsrv_56_ts.dll
"The 56 here represents the version, my PHP version is 5.6, so with this, there are also TS and NTS differences, you can judge according to PHP"
When successful, you can see the following sqlsrv.
In addition, we need to use the sqlsrv correlation function after successful installation.
Refer to http://www.php.net/manual/zh/book.sqlsrv.php.
The above describes the use of php56 combined with SQL server2008. , including the aspects of the content, want to be interested in PHP tutorial friends helpful.