1
0
mirror of https://github.com/php/doc-it.git synced 2026-03-27 00:52:07 +01:00
Files
archived-doc-it/reference/apache/functions/apache-request-headers.xml
Marco Cucinato 041bc30c5d Initial translation
git-svn-id: https://svn.php.net/repository/phpdoc/it/trunk@93537 c90b9560-bf6c-de11-be94-00142212c4b1
2002-08-25 17:15:36 +00:00

79 lines
2.4 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- EN-Revision: 1.1 Maintainer: cucinato Status: ready -->
<!-- splitted from ./en/functions/apache.xml, last change in rev 1.2 -->
<refentry id="function.apache-request-headers">
<refnamediv>
<refname>apache_request_headers</refname>
<refpurpose>Estrae tutti gli header della richiesta HTTP</refpurpose>
</refnamediv>
<refsect1>
<title>Descrizione</title>
<methodsynopsis>
<type>array</type><methodname>apache_request_headers</methodname>
<void/>
</methodsynopsis>
<para>
<function>apache_request_headers</function> restituisce un
array associativo contenente tutti gli header HTTP nella richiesta corrente. Questa funzionalità è
supportata solo quando PHP è un modulo di
<productname>Apache</productname>.
</para>
<note>
<para>
Prima del PHP 4.3.0, <function>apache_request_headers</function> si
chiamava <function>getallheaders</function>. Dopo il PHP 4.3.0,
<function>getallheaders</function> è un alias di
<function>apache_request_headers</function>.
</para>
</note>
<para>
<example>
<title>Esempio di <function>apache_request_headers</function></title>
<programlisting role="php">
<![CDATA[
<?php
$headers = apache_request_headers();
foreach ($headers as $header => $value) {
echo "$header: $value <br />\n";
}
?>
]]>
</programlisting>
</example>
</para>
<para>
<note>
<para>
&Egrave; possibile ottenere il valore delle variabili comuni CGI anche
leggendole dalle variabili di ambiente; questo funziona indipendentemente dal fatto che si stia
usando PHP come modulo <productname>Apache</productname>. Utilizzare
<function>phpinfo</function> per ottenere una lista di tutte le
<link linkend="language.variables.predefined">variabili d'ambiente</link> disponibili.
</para>
</note>
</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
-->