php5.6 Link sqlsrv Database

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.