note 18870 added to function.header

From: Date: Thu, 07 Feb 2002 19:31:54 +0000
Subject: note 18870 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-26365@lists.php.net to get a copy of this message
Hi, i've got a problem with the headers: Header("WWW-Authenticate: Basic realm=\"Login Section\""); Header("HTTP/1.0 401 Unauthorized"); I get a Internal Server Error (500) when i try to open a page with this lines in it... PHP is compiled as an CGI with suEXEC support in it. The error i get is: [Thu Feb 7 20:10:10 2002] [error] [client 62.131.204.236] malformed header from script. Bad header=HTTP/1.0 401 Unauthorized: /home/users/peter/admin/login.php Does someone know how to solve this? -- http://www.php.net/manual/en/function.header.php http://master.php.net/manage/user-notes.php?action=edit+18870 http://master.php.net/manage/user-notes.php?action=delete+18870 http://master.php.net/manage/user-notes.php?action=reject+18870

« previous php.notes (#26365) next »