RE: [PHP] Get the HTTP Server Username
| From: | Chris Shiflett | Date: | Fri, 28 Mar 2003 22:26:52 +0000 |
| Subject: | RE: [PHP] Get the HTTP Server Username | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-141512@lists.php.net to get a copy of this message | ||
--- Mike <php-digest@custom87.net> wrote:
> Is there anyway to get the HTTP Server Username (something like
> $_SERVER['username']) I tried printing all the variables defined in a
> page (and looking at a phpinfo.php) and wasn't able to figure it out...
--- Don Read <dread@texas.net> wrote:
> $_SERVER['PHP_AUTH_USER'];
Mike,
I see it in phpinfo(). Search for "User/Group". I'm on Apache.
Don, read this:
http://www.php.net/manual/en/features.http-auth.php
Chris
=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/