note 62328 added to function.headers-sent

From: Date: Sat, 25 Feb 2006 06:19:03 +0000
Subject: note 62328 added to function.headers-sent
Groups: php.notes 
Request: Send a blank email to php-notes+get-104403@lists.php.net to get a copy of this message
headers_sent() will return FALSE if no HTTP headers have already been sent or TRUE otherwise. If the optional file and line parameters are set, headers_sent() will put the PHP source file name and line number where output started in the file and line variables. You can't add any more header lines using the header() function once the header block has already been sent. Using this function you can at least prevent getting HTTP header related error messages. Another option is to use Output Buffering. Note: The optional file and line parameters where added in PHP 4.3.0. ---- Server IP: 203.199.107.94 Probable Submitter: 61.246.35.241 ---- Manual Page -- http://www.php.net/manual/en/function.headers-sent.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+62328 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+62328&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+62328&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+62328&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+62328&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+62328&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+62328&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+62328&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+62328&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#104403) next »