note 62328 deleted from function.headers-sent by betz

From: Date: Sun, 23 Mar 2008 10:46:41 +0000
Subject: note 62328 deleted from function.headers-sent by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-137353@lists.php.net to get a copy of this message
Note Submitter: rajnesh at gmail dot com ---- 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.

« previous php.notes (#137353) next »