note 5726 deleted from header by ronabop
| From: | ronabop@php.net | Date: | Fri, 11 Aug 2000 15:16:11 +0000 |
| Subject: | note 5726 deleted from header by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-1155@lists.php.net to get a copy of this message | ||
I use the following code and encounter strange problem. In the browser I receive authentication in
realm "0 My realm" insted of "My realm". Is this a bug or feature ? And if it is
a feature what is it's purpose ?
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 buttonn";
exit;
} else {
echo "Hello $PHP_AUTH_USER.<P>";
echo "You entered $PHP_AUTH_PW as your password.<P>";
};