请高手看看下面一段程序,关于认证的!怎么老是调试不出?
FKing 2002-01-01 05:20:57 调试环境 W2K + PHP4.0 + Apache
源程序如下:
<?
if(!isset($PHP_AUTH_USER))
{
Header(\"WWW-Authenticate: Basic realm=请输入你的用户名和密码:\");
Header(\"HTTP/1.0 401 Unauthorized\");
echo \"验证失败,你不能网络资源!\";
exit;
else
{
if ($PHP_AUTH_USER!=\"username\" or $PHP_AUTH_PW!=\"password\")
{
Header(\"HTTP/1.0 401 Unauthorized\");
echo \"验证失败,你不能网络资源!\";
exit;
?>
用IE5.5找开显示如下信息,即使上传到支持PHP的空间也出现以下信息:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@king.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
--------------------------------------------------------------------------------
Apache/1.3.22 Server at localhost Port 80
望高手指教是怎么回事?
----------------------------------------------------