Re[2]: [PHP] current url function
| From: | Richard Davey | Date: | Tue, 16 Mar 2004 01:48:47 +0000 |
| Subject: | Re[2]: [PHP] current url function | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180509@lists.php.net to get a copy of this message | ||
Hello Luis,
Tuesday, March 16, 2004, 1:41:49 AM, you wrote:
LM> i checked
LM> http://sk2.php.net/manual/en/features.http-auth.php, but it
LM> doesnt
LM> shows how to see if i passed user:pass in the url. i try
LM> http://user:pass@localhost/ and dumped globals, and there is
LM> nothing... any
LM> ideas?
If you are running PHP as an Apache module (and not CGI) then a
correctly validated user will have their details in:
$_SERVER['PHP_AUTH_USER']
and
$_SERVER['PHP_AUTH_PW']
There is a whole chapter on this (16) in the manual.
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html