Re: PHP_AUTH_USER

From: Date: Tue, 04 Jun 2002 16:47:56 +0000
Subject: Re: PHP_AUTH_USER
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-100604@lists.php.net to get a copy of this message
And the solution was? remember, other people actually search the archives before they post, so giving the solution to your problem will help those people out. (Even if it was something simple) ---John Holmes... ----- Original Message ----- From: "Fifield, Mike" <Mike.Fifield@schwab.com> To: "'1LT John W. Holmes'" <holmes072000@charter.net>; "Fifield, Mike" <Mike.Fifield@schwab.com>; <php-general@lists.php.net> Sent: Tuesday, June 04, 2002 12:19 PM Subject: RE: [PHP] PHP_AUTH_USER > Correction Redhat7 :-) Got it working thanks for all the help! > > -----Original Message----- > From: 1LT John W. Holmes [mailto:holmes072000@charter.net] > Sent: Tuesday, June 04, 2002 9:36 AM > To: Fifield, Mike; php-general@lists.php.net > Subject: Re: [PHP] PHP_AUTH_USER > > > I have a bunch of pages on my site inside an apache .htaccess protected > > directory. After visitors have logged in I am on part of my site I need to > > find out which user it is that has logged in. I thought this information > was > > stored in the $PHP_AUTH_USER variable, but when I print this variable it > is > > empty. Does anyone know of way to tell on apache 7 how to tell with php > who > > is logged in? > > PHP might not be very stable with apache 7... :) > > What version of PHP are you using? Try using the variable > $_SERVER['PHP_AUTH_USER'] or $HTTP_SERVER_VARS['PHP_AUTH_USER']. If > it's not > in _SERVER, someone please correct me. > > ---John Holmes...

« previous php.general (#100604) next »