RE: [PHP-WIN] HTTP header problem

From: Date: Thu, 10 Aug 2000 10:13:07 +0000
Subject: RE: [PHP-WIN] HTTP header problem
Groups: php.windows 
Request: Send a blank email to php-windows+get-1708@lists.php.net to get a copy of this message
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 To: php-windows@lists.php.net Subject: [PHP-WIN] HTTP header problem 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__.' -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#1708) next »