Your looking for this:

$_SERVER['PHP_AUTH_USER']
When running under Apache as module doing HTTP authentication this
variable is set to the username provided by the user. 

See Reserved Variables: http://www.php.net/reserved.variables


Jami Moore
LightSPARK Digital Designs
http://www.lightsparkdigital.com/



>> -----Original Message-----
>> From: Daniel Baughman [mailto:[EMAIL PROTECTED] 
>> Sent: Friday, May 28, 2004 12:56 AM
>> To: [EMAIL PROTECTED]
>> Subject: [PHP] .htpasswd login
>> 
>> 
>> I have some sites that I would like to view the user name 
>> that someone provided to the basic authentication mechanism 
>> in apache.
>> 
>> Does php/apache provide a means for this?
>> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to