xampp1.8.3 configuring php5.x access to SQL Server 2008

Source: Internet
Author: User
Tags odbc phpinfo

1. Installing XAMPP

2. Download PHP sqlsrv Extensions

Microsoft Drivers 3.2 for PHP for SQL Server

Official:

http://www.microsoft.com/en-us/download/details.aspx?id=20098

After the download is actually a self-extracting file, extracted from each version of the DLL

3. Check the PHP version in XAMPP

You can use Phpinfo () to view

Create a new file xampp\htdocs\phpinfo.php, save the following code to the file

<? PHP Echo Phpinfo ();? >

Open the XAMPP Control Panel, click the Start button in Apache, and start the Apache server

Browser opens http://localhost/phpinfo.php

4. Copy the DLL into the Xampp\php\ext directory according to the PHP version

I'm here for 5.5, so I'm copying the file "Php_sqlsrv_55_ts.dll"

5. Modify the Xampp\php\php.ini file

Add a row

Extension=xxxx.dll

Xxxx.dll that just copy the past DLL file name, do not need to add a path, simple file name on the line.

I'm copying "php_sqlsrv_55_ts.dll" here.

So I'm adding a line here

Extension=php_sqlsrv_55_ts.dll

6. Installing the ODBC driver

Microsoft ODBC Driver One (or higher) for SQL Server

https://www.microsoft.com/en-us/download/details.aspx?id=36434

Note the 32-bit system downloads the x86 version, and the 64-bit system downloads the x64 version

7. Verify that the installation is correct

Browser opens http://localhost/phpinfo.php

xampp1.8.3 configuring php5.x access to SQL Server 2008

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.