RE: [PHP] HTTP Authorization
| From: | Don Read | Date: | Fri, 13 Jul 2001 19:33:11 +0000 |
| Subject: | RE: [PHP] HTTP Authorization | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-57797@lists.php.net to get a copy of this message | ||
On 13-Jul-01 Tom Malone wrote:
> Call me stupid, because this may be a stupid question, but I have searched
> all over for the answer and cannot find it.
>
> How can you get the username and password from HTTP_AUTH_USER or another
> environment variable in PHP? I need to determine who is logging in so I can
> connect to the correct database.
>
http://localhost/phpmanual/language.variables.predefined.html
http://localhost/phpmanual/function.getenv.html
http://localhost/phpmanual/features.http-auth.html
Regards,
--
Don Read dread@texas.net
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.