Re: [PHP-DEV] PHP 4.0 Bug #6965: cannot authenticate From: Sascha Schumann (sascha <email protected>)
Date: 09/30/00

On 1 Oct 2000 khyiu <email protected> wrote:

> From: khyiu <email protected>
> 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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>