php-doc-en/reference/http/functions/headers-sent.xml
Hartmut Holzgraefe 0f553e8585 new optional parameters documented
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@95962 c90b9560-bf6c-de11-be94-00142212c4b1
2002-09-17 12:44:11 +00:00

60 lines
2 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/http.xml, last change in rev 1.7 -->
<refentry id="function.headers-sent">
<refnamediv>
<refname>headers_sent</refname>
<refpurpose>Returns &true; if headers have been sent</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>bool</type><methodname>headers_sent</methodname>
<methodparam><type>string</type><parameter>&amp;file</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>&amp;line</parameter></methodparam>
</methodsynopsis>
<para>
This function returns &true; if the HTTP headers have already been
sent, &false; otherwise. You can't add any more header lines using
the <function>header</function> function once the header block has
already been sent. Using this function you can at least prevent
getting the "Duplicate headers ..." error messages.
</para>
<para>
The function will return the php source file and line number where
output started in the optional <parameter>file</parameter> and
<parameter>line</parameter> parameters if these are given.
</para>
<note>
<simpara>
<parameter>file</parameter> and <parameter>line</parameter> where
added for PHP 4.3.0.
</simpara>
</note>
<para>
See also <function>header</function> for a more detailed discussion
of the matters involved.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->