调用未定义功能sqlsrv_connect()在C:\\ WAMP \\ WWW \\站点\\ client.php第7行 [英] Call to undefined function sqlsrv_connect() in C:\wamp\www\Webs\client.php on line 7
问题描述
是使用Windows 8专业版,WAMP服务器(PHP V5.3.5,阿帕奇V2.2.17),SQL Server 2005的前preSS的Editon。我已经下载了SQLSRV驱动程序和提取他们到PHP的延伸文件夹( C:\\ WAMP \\ BIN \\ PHP \\ php5.3.5 \\分机
),也有更新的PHP。通过添加一些推广ini文件
Am using windows 8 pro, Wamp server (php V5.3.5, apache V2.2.17), Sql server 2005 express editon. I have downloaded the sqlsrv drivers and extracted them into the php extention folder (C:\wamp\bin\php\php5.3.5\ext
), have also update the php.ini file by adding the extentions
extension=php_sqlsrv_53_ts_vc6.dll
extension=php_pdo_sqlsrv_53_ts_vc6.dll
我用这两个系列的尝试和错误上的所有dll文件后,正是这两块拿出没有错误,重新启动WAMP服务器时
I used this two after series of try and error on all the dll file, it was this two that come up with no error, when restarting the wamp server
这是code的连接线;
This is the connection line of code;
$con = sqlsrv_connect('TAQUATECH\SQLEXPRESS') or die("cannot connect");
它想出了以下错误;
It came up with the following error;
致命错误:调用未定义的函数sqlsrv_connect()的
C:\\ WAMP \\ WWW \\站点\\ client.php第7行
Fatal error: Call to undefined function sqlsrv_connect() in C:\wamp\www\Webs\client.php on line 7
请,我需要有人帮我在这,我会真的AP preciate
pls, i need somebody to help me on this, i will really appreciate
推荐答案
有关使用64位系统的(OS,WAMP,MSSQL),这64位驱动程序可以为他们服务,并修复错误:
For those using 64-bit systems (OS, WAMP, MSSQL), these 64-bit drivers can serve them and fix the error:
致命错误:调用未定义的函数sqlsrv_connect()在C:\\ WAMP \\ WWW ...
Fatal error: Call to undefined function sqlsrv_connect() in C:\wamp\www...
驱动SQLSRV 64:
Drivers SQLSRV x64:
的http://robsphp.blogspot.in/2012/06/unofficial-microsoft-sql-server-driver.html
这篇关于调用未定义功能sqlsrv_connect()在C:\\ WAMP \\ WWW \\站点\\ client.php第7行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!