Re: User Authentication

From: Date: Mon, 17 Dec 2001 16:54:57 +0000
Subject: Re: User Authentication
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-77960@lists.php.net to get a copy of this message
"Paul Burney" <paul.lists@burney.ws> wrote in message news:B8436E54.E5C%paul.lists@burney.ws... > on 12/16/01 12:58 PM, Daniel Grace at rubein@earthlink.net wrote: > > > Anyways, though the 401 part works and actually brings up the typical "Enter > > Username/Password" box, $PHP_AUTH_USER and $PHP_AUTH_PW are not being set. > > There are no .htaccess files in the directory (or any parent dirs for that > > matter), and no AuthType directives all in my httpd.conf file. I have been > > unsuccessful in determining what is wrong, and am flat out of ideas. > > My guess would be that register_globals is off. If I recall correctly, > $PHP_AUTH_USER and $PHP_AUTH_PW need register_globals on to work like you > want them to. > > Check phpinfo() to see if another variable, maybe one in the new arrays, > will give them to you. If not, you can look for the Authorize Header and > then manually parse out the User and PW information. > > Paul > > <?php > /* Happy Holidays */ > mysql_select_db('North_Pole'); > mysql_query('SELECT reindeer FROM stable WHERE nose_color="red"'); > ?> > > Bah, my test page displayed a phpinfo() and I never noticed this... For some reason You were correct. $PHP_AUTH_USER and $PHP_AUTH_PW reside in _$SERVER under PHP 4.1.0 (and thus presumably $HTTP_SERVER_VARS under PHP 4.0.6) This means I can actually get back to making progress on my site... -- Daniel Grace Warning: Undefined variable: signature in email.php on line 35

« previous php.general (#77960) next »