PHP和HTTP Authentication

# 获取认证用户名和密码

$_SERVER['PHP_AUTH_USER'];
$_SERVER['PHP_AUTH_PW'];

参考资料:

    https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication
    https://www.nginx.com/resources/admin-guide/restricting-access-auth-basic/
    http://php.net/manual/fa/features.http-auth.php