简体   繁体   中英

Install PHP MS SQL Windows Server 2008 R2 SP1

My server name is SERVER9

System info:

System: Windows NT SERVER9 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) AMD64
Compiler: MSVC11 (Visual C++ 2012)
Architecture: x86
Server API: CGI/FastCGI

My problem is, I can't connect to our MS-SQL server. When I am trying to use the sqlsrv_connect() command in PHP I recieve the error:

Fatal error: Call to undefined function sqlsrv_connect() in G:\\www\\intranet\\dbtest\\db.php on line 15

I have theese installed:

  1. ODBC Driver 11 for SQL

I have also included the .dll extension in php.ini :

extension_dir = "C:\\PHP\\ext\\"
...
[MS SQL]
extension=php_sqlsrv_56_nts.dll
extension=php_pdo_sqlsrv_56_nts.dll

Please help!

确保已安装位于此处的VC ++ Redist的x86版本。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM