Re: Problem...header already sent by
| From: | Peter Ruan | Date: | Tue, 05 Feb 2002 08:04:36 +0000 |
| Subject: | Re: Problem...header already sent by | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general php.general |
| Request: | Send a blank email to php-general+get-83623@lists.php.net to get a copy of this message | ||
Ryan,
I just tried it with my Linux box and I get the authentication box...which is good sign. So it looks like a PHP in MS Windows (the 'fabulous' windows) setting which from the error.log file indicates as well.
/****** error message listed in error.log **********/
[Mon Feb 04 22:36:30 2002] [error] [client 127.0.0.1] malformed header from script. Bad header=HTTP/1.0 401 Unauthorized: /apache/php/php.exe
In looks like a setting problem in some .ini file. Do you know how to correct this problem?
Thanks for the help!
-Peter
Ryan F. Bayhonan wrote:
It will work as expected Peter. <?php header ("WWW-authenticate: Basic realm=\"Private\""); header ("HTTP/1.0 401 Unauthorized"); echo "Unauthorized"; exit; ?> So where do we go from here?? Ryan