PHP 4.3.3 and Apache 2.01 and $PHP_AUTH_USER
| From: | PHPFAN | Date: | Wed, 15 Oct 2003 21:29:27 +0000 |
| Subject: | PHP 4.3.3 and Apache 2.01 and $PHP_AUTH_USER | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-21782@lists.php.net to get a copy of this message | ||
Hi, can any one help me? when i try this,
<?php
if(!isset($PHP_AUTH_USER)) {
Header("WWW-Authenticate: Basic realm=\"Mijn Realm\"");
Header("HTTP/1.0 401 Unauthorized");
echo "Nothing .\n";
exit;
} else {
echo "Hallo $PHP_AUTH_USER.<P>";
echo "Your PW is $PHP_AUTH_PW.<P>";
}
?>It don't work. i only see "Nothing".Whats wrong??Greatings Edwin