PHP56 is used in conjunction with SQL server2008.

Source: Internet
Author: User
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.

  • 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.