Hello people,
and thanks in advance for any help provided.
I have a page that uses the global variables $PHP_AUTH_USER and $PHP_AUTH_PW to verify a login and password. the code is below:
<?php
if ( ( !isset( $PHP_AUTH_USER )) || (!isset($PHP_AUTH_PW))
|| ( $PHP_AUTH_USER != 'username' ) || ( $PHP_AUTH_PW != 'password' ) ) {
header( 'WWW-Authenticate: Basic realm="F1Bahrain Administration"' );
header( 'HTTP/1.0 401 Unauthorized' );
echo 'Sorry, the Username and Password you used are invalid.';
exit;
} else {
echo "
HTML GOES HERE
";
}
?>
now it could be a really stupid mistake, but could it possibly be the realm?
on my localhost the above script works perfectly...but on the online server, it does not..the password and username won't verify.
thanks for any help.
Mike