php:php5.4 Connecting to SQL Server

Source: Internet
Author: User

To connect to the SQL Server (2005/2008) database in a PHP5.4 environment, the following steps are required:

1. Download the driver for PHP5.4 connection to SQL Server (two dynamic connection libraries) http://www.microsoft.com/en-us/download/confirmation.aspx?id=20098

Unzip to get two files Php_pdo_sqlsrv_54_ts.dll and Php_sqlsrv_54_ts.dll (this is a thread-safe version), copy these two files to PHP

In the Ext directory. Then configure it in the php.ini file:

[Php_pdo_sqlsrv]extension=php_pdo_sqlsrv_54_ts.dll[php_sqlsrv]extension=php_sqlsrv_54_ts.dll

2. Download Microsoft SQL Server Native Client http://www.xdowns.com/soft/38/110/2012/soft_87196.html

After the installation is complete, your PHP5.4 can access the SQL Server database unexpectedly.

Note: The driver for PHP5.4 only supports WIN7 and server 2008 operating systems.

Related Article

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.