PHP连接Oracle数据库(二)

2014-11-24 08:48:48 · 作者: · 浏览: 2
(!($conn=ora_logon("$PHP_AUTH_USER@$SID",$PHP_AUTH_PW)))
{Header("WWW-authenticate: basic realm="$SID"");
Header("HTTP/1.0 401 Unauthorized");
$title="Login Instructions";
echo "
You are not authorised to enter the site
";
exit;
}}
>