.htaccess variables
Posted: Tue Feb 18, 2003 1:41 pm
Hello how can i use the user name an d tha password varibales from a .htaccess request?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Server variables: $_SERVER
Note: Introduced in 4.1.0. In earlier versions, use $HTTP_SERVER_VARS.
[...]
'PHP_AUTH_USER'
When running under Apache as module doing HTTP authentication this variable is set to the username provided by the user.
'PHP_AUTH_PW'
When running under Apache as module doing HTTP authentication this variable is set to the password provided by the user.
'PHP_AUTH_TYPE'
When running under Apache as module doing HTTP authenticated this variable is set to the authentication type.