Moved documentation to apache_request_headers(). This is now an alias

for that function, as of PHP 4.3.0


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@88385 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2002-07-11 21:34:24 +00:00
parent 9a99625272
commit 8725b61220

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/apache.xml, last change in rev 1.2 -->
<refentry id="function.getallheaders">
<refnamediv>
@ -13,42 +13,14 @@
<void/>
</methodsynopsis>
<para>
This function returns an associative array of all the HTTP
headers in the current request.
<function>getallheaders</function> is an alias for
<function>apache_request_headers</function>. It will return an
associative array of all the HTTP headers in the current request.
Please read the <function>apache_request_headers</function>
documentation for more information on how this function works.
</para>
<para>
<note>
<para>
You can also get at the value of the common CGI variables by
reading them from the environment, which works whether or not
you are using PHP as an Apache module. Use
<function>phpinfo</function> to see a list of all of the
environment variables defined this way.
</para>
</note>
</para>
<para>
<example>
<title><function>getallheaders</function> Example</title>
<programlisting role="php">
<![CDATA[
$headers = getallheaders();
while (list ($header, $value) = each ($headers)) {
echo "$header: $value<br />\n";
}
]]>
</programlisting>
</example>
</para>
<para>
This example will display all the request headers for the current
request.
<note>
<simpara>
<function>getallheaders</function> is currently only supported
when PHP runs as an <productname>Apache</productname> module.
</simpara>
</note>
See also <function>apache_request_headers</function>.
</para>
</refsect1>
</refentry>