Getting User Name and Password from Apache authentication

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
conquer
Forum Newbie
Posts: 1
Joined: Sat Jun 29, 2002 7:38 am

Getting User Name and Password from Apache authentication

Post 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
will
Forum Contributor
Posts: 120
Joined: Fri Jun 21, 2002 9:38 am
Location: Memphis, TN

Post by will »

a simple search for 'authentication' in the php.net manual reveals...

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