note 8270 added to HTTP authentication with PHP
| From: | phire420 at hotmail dot com | Date: | Sun, 03 Sep 2000 13:19:40 +0000 |
| Subject: | note 8270 added to HTTP authentication with PHP | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4075@lists.php.net to get a copy of this message | ||
if i have a username and password, using a .htaccess file with:
AuthName restricted
AuthType Basic
AuthUserFile /www/dmmt/_vti_pvt/phire.pwd
require valid-user
Does that username get assigned a variable in the next page it goes to? for example does it get
assigned to $username ? if not, how do I make an HTML form username and password field that gets the
user and pass from a .htpasswd file? please email me with suggestions, thank you very much.
Chris.
http://www.php.net/manual/features.http-auth.php