Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 要求认证的网站_Php_Authentication - Fatal编程技术网

Php 要求认证的网站

Php 要求认证的网站,php,authentication,Php,Authentication,当我转到网站url时,我的网站要求验证。上面说 "A username and password are being requested by http://test.com. The site says: "c100 Undetectable #18a: Restricted area" 当我点击取消按钮时,它就会消失。每当我刷新页面或单击链接时,它都会询问。。要删除此项,我可以做些什么?请在您的所有页面中检查此代码,此身份验证有一些标题,如下所示:- if($_SERVER["PHP_A

当我转到网站url时,我的网站要求验证。上面说

"A username and password are being requested by http://test.com. The site says: "c100 Undetectable #18a: Restricted area" 

当我点击取消按钮时,它就会消失。每当我刷新页面或单击链接时,它都会询问。。要删除此项,我可以做些什么?

请在您的所有页面中检查此代码,此身份验证有一些标题,如下所示:-

if($_SERVER["PHP_AUTH_USER"]  && $_SERVER["PHP_AUTH_PW"]){

}        
header("WWW-Authenticate: Basic realm=);
header("HTTP/1.0 401 Unauthorized");
请删除此项,您的问题将得到解决。
要了解有关身份验证的更多信息,请参阅-

请在所有页面中检查此代码,此身份验证的标题如下:-

if($_SERVER["PHP_AUTH_USER"]  && $_SERVER["PHP_AUTH_PW"]){

}        
header("WWW-Authenticate: Basic realm=);
header("HTTP/1.0 401 Unauthorized");
请删除此项,您的问题将得到解决。
要了解有关身份验证的更多信息,请参阅-

删除请求身份验证的标题?如果是您自己的网站,请检查是否有任何要求验证的代码?或.htaccess条目删除请求身份验证的标题?如果是您自己的网站,请检查是否有任何要求验证的代码?或.htaccess条目