note 19115 added to function.header

From: Date: Sat, 16 Feb 2002 03:22:43 +0000
Subject: note 19115 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-26689@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+19115 http://master.php.net/manage/user-notes.php?action=delete+19115 http://master.php.net/manage/user-notes.php?action=reject+19115

« previous php.notes (#26689) next »