我已经在php C中上传了以下文件:\ wamp \ bin \ php \ php5.5.12 \ ext
我还在php.ini中启用了以下内容
但我仍然得到错误:
致命错误:调用未定义的函数sqlsrv_connect()
这是我的连接文件中的代码:
$serverName = "xxx.xxx.xxx.x"; //serverName\instanceName
$connectionInfo = array( "Database"=>"xxxxx", "UID"=>"xxx", "PWD"=>"xxx");
$conn = sqlsrv_connect( $serverName, $connectionInfo);
if( $conn )
{
echo "Connection established.<br />";
}
else{
echo "Connection could not be established.<br />";
die( print_r( sqlsrv_errors(), true));
}