Page 1 of 1

Getting User Name and Password from Apache authentication

Posted: Sat Jun 29, 2002 7:38 am
by conquer
I've setup the apache authentication by using htpasswd file.
How can I read the username entered by the user (in the logon dialog) in my PHP code ?
Is there any environment variable ?

Thanks

Posted: Sun Jun 30, 2002 6:34 am
by will
a simple search for 'authentication' in the php.net manual reveals...

http://www.php.net/manual/en/features.http-auth.php