derick Fri Jun 21 05:37:45 2002 EDT
Modified files:
/phpdoc/en/reference/http/functions header.xml
Log:
- Add documentation for the new parameter
Index: phpdoc/en/reference/http/functions/header.xml
diff -u phpdoc/en/reference/http/functions/header.xml:1.3
phpdoc/en/reference/http/functions/header.xml:1.4
--- phpdoc/en/reference/http/functions/header.xml:1.3 Sat May 11 16:29:49 2002
+++ phpdoc/en/reference/http/functions/header.xml Fri Jun 21 05:37:45 2002
@@ -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.2 -->
<refentry id="function.header">
<refnamediv>
@@ -12,6 +12,7 @@
<type>int</type><methodname>header</methodname>
<methodparam><type>string</type><parameter>string</parameter></methodparam>
<methodparam
choice="opt"><type>bool</type><parameter>replace</parameter></methodparam>
+ <methodparam
+choice="opt"><type>int</type><parameter>http_reponse_code</parameter></methodparam>
</methodsynopsis>
<para>
<function>header</function> is used to send raw
@@ -29,10 +30,14 @@
<programlisting role="php">
<![CDATA[
header('WWW-Authenticate: Negotiate');
-header('WWW-Authenticate: NTLM',false);
+header('WWW-Authenticate: NTLM', FALSE);
]]>
</programlisting>
</informalexample>
+ </para>
+ <para>
+ The second optional <parameter>http_response_code</parameter> force the
+ HTTP response code to the specified value.
</para>
<para>
There are two special-case header calls. The first is a header