PHP 4.0 Bug #6965: cannot authenticate

From: Date: Sun, 01 Oct 2000 02:54:26 +0000
Subject: PHP 4.0 Bug #6965: cannot authenticate
Groups: php.dev 
Request: Send a blank email to php-dev+get-33926@lists.php.net to get a copy of this message
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>"; } ?>

« previous php.dev (#33926) next »