Re: Password Protected Directories
| From: | Brian Clark | Date: | Wed, 22 Nov 2000 20:43:12 +0000 |
| Subject: | Re: Password Protected Directories | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-26714@lists.php.net to get a copy of this message | ||
Hello Mike,
(M == "Mike") mpeloso@princeton.edu writes:
M> My host is running Apache and Linux .
M> I have password protection on my directories which has a pop-up dialog
M> box.How can I use the username and password in a php script so the user
M> doesn't have to retype it.
$GLOBALS['PHP_AUTH_USER']
$GLOBALS['PHP_AUTH_PWD']
(or, before someone says it, their simplified counterparts
$PHP_AUTH_USER & $PHP_AUTH_PWD)
http://www.php.net/manual/html/features.http-auth.html
-Brian
--
You may be recognized soon. Hide.