Hi there....

this is a tutorial am trying to do...chk out the code..

if ( ( !isset( $PHP_AUTH_USER )) || (!isset($PHP_AUTH_PW))
     || ( $PHP_AUTH_USER != 'user' ) || ( $PHP_AUTH_PW != 'open' ) ) {

    header( 'WWW-Authenticate: Basic realm="Private"' );
    header( 'HTTP/1.0 401 Unauthorized' );
    echo 'Authorization Required.';
    exit;

} else {

    echo 'Success!';

}

when i tried to access the page..the dialogue box appears asking for user
name and password..and when i type the "user" and "open"...it just keeps on
asking for the user name and password rather than logging in and showing
success..Is there anything to do with the any settings in the apache or
php...am using apache 1.3.33 and php 4.3.10 on winXP pro SP1..and i have php
installed as a module...OR is there anything to do with the code....

thanks...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to