HTTP header problem
| From: | TJ Houston | Date: | Thu, 10 Aug 2000 02:45:54 +0000 |
| Subject: | HTTP header problem | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-1704@lists.php.net to get a copy of this message | ||
Hi all.
I'm needing to send an "unauthorized" header from a PHP script so I'm using
the header() function as examplified in the PHP documentation...
header( "HTTP/1.0 401 Unauthorized" );
However, Apache is throwing this error at me, from logs/error.log, and the
page I'm getting displayed, in my browser, is a 500 Internal Server Error :
[Thu Aug 10 03:41:02 2000] [error] [client 127.0.0.1] malformed header from
script. Bad header=HTTP/1.0 401 Unauthorized: g:/php4/php.exe
Anyone got any idea what I'm doing wrong or what, if anything, I'm forgetting?
:/
TIA,
-TJ
+------------------------------------------------------+
| Madness takes it's toll; Please have exact change! |
+-,-------------------------, ,--------+
._ tjh@myrathi.dhs.org _..__ICQ#2784361__.'