Re: extracting login name
| From: | Zak Greant | Date: | Thu, 26 Apr 2001 05:21:39 +0000 |
| Subject: | Re: extracting login name | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-8904@lists.php.net to get a copy of this message | ||
Quite right - thanks for the correction Paul! :)
--zak
----- Original Message -----
From: "Paul Burney" <burney@gseis.ucla.edu>
To: "olinux" <olnx@yahoo.com>; "PHP-DB" <php-db@lists.php.net>;
<PHPLearners@yahoogroups.com>
Sent: Wednesday, April 25, 2001 11:07 PM
Subject: Re: [PHP-DB] extracting login name
> on 4/26/01 12:45 AM, olinux at olnx@yahoo.com wrote:
>
> > I have a htpsswd protected directory and would like the client to only
> > log on once. Is there a way i can get their USERNAME so that i can pull
> > the correct records from the db?
>
> IIRC, $PHP_AUTH_USER and $PHP_AUTH_PW are only set if PHP is sending the
> authentication. If they don't work for you, you should be able to use the
> environment variable $REMOTE_USER.