note 54260 added to function.headers-sent

From: Date: Tue, 28 Jun 2005 16:56:34 +0000
Subject: note 54260 added to function.headers-sent
Groups: php.notes 
Request: Send a blank email to php-notes+get-91099@lists.php.net to get a copy of this message
In case this comes up with anyone else, you might trigger headers to be sent if you have a PHP file with extra space after the closing ?>. In particular, if you include that file at the top of your main script, it will cause headers to send, followed by the space after the ?> in your included script. In short, make sure you don't have any space trailing your final ?>. ---- Manual Page -- http://www.php.net/manual/en/function.headers-sent.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+54260 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54260&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54260&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54260&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54260&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54260&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54260&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+54260&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#91099) next »