<?
if ((!isset( $PHP_AUTH_USER )) || (!isset( $PHP_AUTH_PW ))) {
header('WWW-Authenticate: Basic realm="Private"');
header('HTTP/1.0 401 Unauthorized');
echo " you hoser, you're unauthorized" ;
} else {
echo "You entered $PHP_AUTH_USER for a username.<BR>";
echo "You entered $PHP_AUTH_PW for a password.<BR>";
}
?>
If i insert ANY value, it should accept it and display it, this was just a test. But i dont seem to pass it, Im pretty sure i dont have PHP by CGI, im running a foxserv server < http://www.foxserv.net > . But all I get from this statement is, "you hoser, you're unauthorized" . Any ideas why my PHP is wrong when i followed a specific tutorial and double checked my code and still dont get the "you entered.. stuff"