Native environment: Wampserver Version 2.4
Remote database: SQL Server 2008
Reply to discussion (solution)
PHP 5.3 Below can be extended with MSSQL
php5.3+ extension with sqlsrv
PHP 5.3 Below can be extended with MSSQL
php5.3+ extension with sqlsrv
With sqlsrv extension, what configuration does the remote database need?
I've only installed extensions in my wamp, and I've installed a Microsoft SQL Server R2 Native Client.
But the test is still a hint: Fatal error:call to undefined function sqlsrv_connect () in D:\wamp\www\test\testsql2008.php on line 15
1, the remote database needs to open remote connection permissions.
2, local PHP also have to install sqlsrv extension. Open method Online Search, you need to pay attention to your PHP version.
I'm faking it. Microsoft Drivers for PHP for SQL Server 3.0
According to the above requirements, also do the same kind of (such as)
http://bbs.csdn.net/topics/390720089
With the phpstudy extension inside has been given well, hook on it can be.
Your extension did not open successfully.
The problem is resolved, describe the Web server environment that you configured:
1, System version: Win7 Ultimate version 64-bit
2,php-5.3.2-nts-win32-vc9-x86 (an extension was installed in IIS using Phpmanager: Php_pdo_sqlsrv_53_nts_vc9.dll php_sqlsrv_53_nts_vc9.dll)
3,phpmanagerforiis-1.2.0-x64
4, using fasccgi mode
5, install Microsoft SQL Server R2 Native Client