Re: PHP_AUTH_USER in 4.3

From: Date: Wed, 02 Oct 2002 13:06:40 +0000
Subject: Re: PHP_AUTH_USER in 4.3
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-88853@lists.php.net to get a copy of this message
I just checked with current cvs and this simple test script: <?php if (!isset($PHP_AUTH_USER)) { header('WWW-Authenticate: Basic realm="The Realm"'); header('HTTP/1.0 401 Unauthorized'); echo 'Text to send if user hits Cancel button'; exit; } else { echo "<p>Hello $PHP_AUTH_USER.</p>"; echo "<p>You entered $PHP_AUTH_PW as your password.</p>"; } ?> This is A TEST The output after entering the auth data was: Hello Rasmus. You entered foo as your password. This is A TEST So, it works just fine. You aren't by any chance using Apache2? -Rasmus On Wed, 2 Oct 2002, David Reid wrote: > This also seems to be a problem for SquirrelMail (2.0.8) which just hangs > after the "upgrade". It was working OK before I changed to CVS. > > david > > ----- Original Message ----- > From: "Rasmus Lerdorf" <rasmus@php.net> > To: "David Reid" <dreid@jetnet.co.uk> > Cc: <php-dev@lists.php.net> > Sent: Wednesday, October 02, 2002 1:29 AM > Subject: Re: [PHP-DEV] PHP_AUTH_USER in 4.3 > > > > It shouldn't have stopped working. Did you change your register_globals > > setting or something? > > > > On Wed, 2 Oct 2002, David Reid wrote: > > > > > Is support for this being dropped or is it just not added yet? Just > changed > > > from 4.2.3 and was surprised to see that it stopped working... > > > > > > david > > > > > > > > > -- > > > PHP Development Mailing List > > > <http://www.php.net/> > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.dev (#88853) next »