note 51845 added to function.header

From: Date: Tue, 12 Apr 2005 23:17:56 +0000
Subject: note 51845 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-87915@lists.php.net to get a copy of this message
baktec: Please refer to the example above. It states: " Remember that header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP. " So in the code you have, the <body> tag at the top is causing your problem. It happens because headers have already been sent when the <body> tag goes out (or any other output for that matter) to the browser; you cannot send your own headers once this has happened. Please be sure to read the documentation and especially the user comments below, chances are that somebody has run into your problem before. ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51845 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51845&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51845&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51845&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51845&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51845&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51845&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#87915) next »