Asking about WWW-Authenticate
| From: | Farianto Kurniawan | Date: | Fri, 23 Aug 2002 07:10:53 +0000 |
| Subject: | Asking about WWW-Authenticate | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-113722@lists.php.net to get a copy of this message | ||
hi ... everybody..
I have a little bit problem with my PHP-script ...
please help me ...
The problem is :
I have a file.php which contain :
<? if(!isset($PHP_AUTH_USER)) {
header('WWW-Authenticate: Basic realm ="My Private Stuff"');
header('HTTP/1.1 401 Unauthorized');
exit;
}
?>
The question is why it doesn't work ? I used PhpTriad in WIndows2000 Server
and my file is putted under htdocs directory.
I have set my httpd.conf ,too . Can you help me ..maybe there is something I
need to set up that I don't know.
The IE browser tell me there is Internal Server Error .
Please help me ...., because I'm waiting for you to deploy the system for my
company website.
Thanx
Best regards,
Farianto.K