philip Thu Jul 11 17:34:24 2002 EDT Modified files: /phpdoc/en/reference/apache/functions getallheaders.xml Log: Moved documentation to apache_request_headers(). This is now an alias for that function, as of PHP 4.3.0 Index: phpdoc/en/reference/apache/functions/getallheaders.xml diff -u phpdoc/en/reference/apache/functions/getallheaders.xml:1.2 phpdoc/en/reference/apache/functions/getallheaders.xml:1.3 --- phpdoc/en/reference/apache/functions/getallheaders.xml:1.2 Wed Apr 17 02:36:20 2002 +++ phpdoc/en/reference/apache/functions/getallheaders.xml Thu Jul 11 17:34:24 +2002 @@ -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>
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php