headers_sentChecks if or where headers have been sent
&reftitle.description;
boolheaders_sentstringfileintline
Checks if or where headers have been sent.
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.
&reftitle.parameters;
file
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.
line
The line number where the output started.
&reftitle.returnvalues;
headers_sent will return &false; if no HTTP headers
have already been sent or &true; otherwise.
&reftitle.changelog;
&Version;&Description;4.3.0
The optional file and line
parameters were added.
&reftitle.examples;
Examples using headers_sent
link instead\n";
exit;
}
?>
]]>
&reftitle.seealso;
ob_starttrigger_errorheader for a more detailed discussion of the
matters involved.