版本:php-5.3.20+SQLServer2005++Apache2.2.22+ZendStudio-7.2.1
(win7系统32位)扩展DLL:php_sqlsrv_53_ts_vc9.dll
php_pdo_sqlsrv_53_ts_vc9.dll
已放置在php/ext中测试程序为:
<?php
$serverName = "localhost";
$connectionInfo = array ("Database" => "imp_db", "UID" => 'sa', "PWD" => 'sa' );
global $serverName;
global $connectionInfo;
$conn = sqlsrv_connect( $serverName, $connectionInfo);
if($conn === false )
{
die( print_r( sqlsrv_errors(), true));
return NULL;
}
echo "ok!";
?>
但是,Zend studio报错Debug Error: /imp/newfile.php line 14 - Call to undefined function sqlsrv_connect()
查了很多资料 还是没有解决。。
本人菜鸟,刚刚开始学习PHP,,,求各位大神指教!!!phpsqlserver
(win7系统32位)扩展DLL:php_sqlsrv_53_ts_vc9.dll
php_pdo_sqlsrv_53_ts_vc9.dll
已放置在php/ext中测试程序为:
<?php
$serverName = "localhost";
$connectionInfo = array ("Database" => "imp_db", "UID" => 'sa', "PWD" => 'sa' );
global $serverName;
global $connectionInfo;
$conn = sqlsrv_connect( $serverName, $connectionInfo);
if($conn === false )
{
die( print_r( sqlsrv_errors(), true));
return NULL;
}
echo "ok!";
?>
但是,Zend studio报错Debug Error: /imp/newfile.php line 14 - Call to undefined function sqlsrv_connect()
查了很多资料 还是没有解决。。
本人菜鸟,刚刚开始学习PHP,,,求各位大神指教!!!phpsqlserver
1、php.ini文件里面是否加入extension=php_sqlsrv_53_ts_vc9.dll
2、php_sqlsrv_53_ts_vc9.dll版本是否和当前php版本配套。
3、apache服务器是否重启。