Today to configure the server to use PHP and Sqlserver2008 database, the Internet to find some information, basically said that the need to download Microsoft 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
Finally restart the server can, but I restarted the Apache after the phpinfo still did not see the expansion of Sqlsrv, later in the Baidu bar http://tieba.baidu.com/p/3214930266 found the problem key:
Originally Microsoft drivers 3.2 for SQL Server does not support the 64-bit PHP version, some unofficial 3.0.2.2 is a separate 64-bit version of the compilation, [url]http://Link: http:/ /robsphp.blogspot.co.uk/2012/06/unofficial-microsoft-sql-server-driver.html[/url] (This cannot be opened outside the wall),
But fortunately there are enthusiastic netizens to provide the share of Baidu, Http://pan.baidu.com/s/1dDIRpJF,
This is the ultimate perfect solution, download good, there will be 32-bit and 64-bit extension, unzip the corresponding PHP version required extensions, and then add extension=php_sqlsrv_ version number in php.ini _ The thread-safe version of the. dll, such as extension=php_sqlsrv_56_ts.dll,64 PHP Pro-test is feasible, if it is 32-bit or recommended to use Microsoft's official 3.2CTP version of the http://www.microsoft.com/ en-us/download/details.aspx?id=20098
I'm writing the full path:
Extension=e:\huanjing\php\ext\php_pdo_sqlsrv_56_nts.dll
Extension=e:\huanjing\php\ext\php_sqlsrv_56_nts.dll
php5.6 Link sqlsrv Database