标签:
授权:浏览器在请求头中发送用户名和密码,授权没有发送或不符合,服务器返回“401 Unauthorized"响应。认证:检查$_SERVER[‘PHP_AUTH_USER‘] $_SERVER[‘PHP_AUTH_PW‘]
header(‘WWW-Authenticate:Basic realm="Top Secret Files"‘);
header(‘HTTP/1.0/ 401 Unauthorized‘);
--------------------------------------------------------------------------------Not the end.
标签:
原文地址:http://www.cnblogs.com/HackHer/p/5326250.html