A small program, don't know why not good! Is there any setting?
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 CANCLE Button / N";
EXIT;
}
Else
{
Echo "Hello $ PHP_AUTH_USER.
";
Echo "You Entered $ PHP_AUTH_PW As Your Password.
";
}
?>