note 51815 added to function.header

From: Date: Tue, 12 Apr 2005 01:57:29 +0000
Subject: note 51815 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-87876@lists.php.net to get a copy of this message
baktec, you cannot send header information after you have already sent html information to the browser. If you remove the <body> & </body> and well as any other html it should work. Basically header() should be the first thing that is actually sent to the browser otherwise default header information is sent automatically and it cannot be changed. ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51815 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51815&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51815&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51815&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51815&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51815&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51815&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#87876) next »