Re: HTTP header problem
| From: | TJ Houston | Date: | Thu, 10 Aug 2000 11:07:05 +0000 |
| Subject: | Re: HTTP header problem | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-1709@lists.php.net to get a copy of this message | ||
Thanks to all that answered, both via the list and privately; problem now
fixed! :-)
Gratefully,
-TJ
-----Original Message-----
From: Francois MAESEELE <fmaeseele@businessobjects.com>
Date: 10 August 2000 11:08
You have to run PHP as an apache module not as a CGI one.
François MAESEELE.
-----Original Message-----
From: TJ Houston [mailto:tj.houston@templar.dhs.org]
Sent: Thursday, August 10, 2000 4:46 AM
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__.'