mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
new optional parameters documented
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@95962 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
dce674b392
commit
0f553e8585
1 changed files with 15 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- splitted from ./en/functions/http.xml, last change in rev 1.7 -->
|
||||
<refentry id="function.headers-sent">
|
||||
<refnamediv>
|
||||
|
@ -9,8 +9,9 @@
|
|||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>headers_sent</methodname>
|
||||
<void/>
|
||||
<type>bool</type><methodname>headers_sent</methodname>
|
||||
<methodparam><type>string</type><parameter>&file</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>&line</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function returns &true; if the HTTP headers have already been
|
||||
|
@ -19,6 +20,17 @@
|
|||
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.
|
||||
|
|
Loading…
Reference in a new issue