我收到致命错误:当我尝试使用此代码连接到数据库且两个dll都存在时,调用未定义的函数sqlsrv_connect():
<?php
$serverName = "LOZANOVSKITLT\SQLEXPRESS";
$connectionInfo = array( "Muzicari"=>"Bend");
$conn = sqlsrv_connect( $serverName, $connectionInfo); //here it fails
if( $conn ) {
echo "Connection established.<br />";
}else{
echo "Connection could not be established.<br />";
die( print_r( sqlsrv_errors(), true));
}
sqlsrv_close($conn);
?>
在google drive链接下方,您会看到屏幕截图以获取更多信息
操作系统:Windows 10 Pro 64位
系统制造商:Acer
内存:4096MB RAM
系统型号:Aspire 5741
32位WAMP安装
https://drive.google.com/folderview?id=0B_B7w46v8TbWTkZPdWVkTml4VFk&usp=sharing