Re: PHP 4.0 Bug #6965: cannot authenticate

From: Date: Sat, 30 Sep 2000 14:53:39 +0000
Subject: Re: PHP 4.0 Bug #6965: cannot authenticate
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-33927@lists.php.net to get a copy of this message
On 1 Oct 2000 khyiu@hk.quamnet.com wrote: > From: khyiu@hk.quamnet.com > Operating system: Solaris 2.7 + thttpd2.20 > PHP version: 4.0.2 > PHP Bug Type: Other web server > Bug description: cannot authenticate > > thttpd with php4.02 using the following script always authenicate fail, any idea? > > <?php > if(!isset($PHP_AUTH_USER)) { > Header("WWW-Authenticate: Basic realm=\"My Realm\""); > Header("HTTP/1.0 401 Unauthorized"); > echo "Text to send if user hits Cancel button\n"; > exit; > } else { > echo "Hello $PHP_AUTH_USER.<P>"; > echo "You entered $PHP_AUTH_PW as your password.<P>"; > } > ?> thttpd does not make this data available to PHP. So, currently auth_user/auth_password are always set to NULL. - Sascha

« previous php.dev (#33927) next »