1
0
mirror of https://github.com/php/doc-ja.git synced 2026-03-30 11:02:18 +02:00
Files
archived-doc-ja/reference/apache/functions/apache-request-headers.xml
Hideyuki Shimooka bb78f5ed32 Translation updated
git-svn-id: https://svn.php.net/repository/phpdoc/ja/trunk@185798 c90b9560-bf6c-de11-be94-00142212c4b1
2005-05-04 17:18:28 +00:00

115 lines
3.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.4 $ -->
<!-- EN-Revision: 1.10 Maintainer: hirokawa Status: ready -->
<!-- CREDITS: shimooka -->
<refentry id="function.apache-request-headers">
<refnamediv>
<refname>apache_request_headers</refname>
<refpurpose>HTTPリクエストヘッダを全て取得する</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>apache_request_headers</methodname>
<void/>
</methodsynopsis>
<para>
カレントのリクエストにおける全てのHTTPヘッダを取得します。
</para>
&apache.req.module;
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
カレントのリクエストにおける全てのHTTPヘッダの連想配列、もしくは
失敗時は &false; を返します。
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><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.outputs.similar;
<screen>
<![CDATA[
Accept: */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0
Host: www.example.com
Connection: Keep-Alive
]]>
</screen>
</example>
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
<note>
<para>
PHP 4.3.0より前では、<function>apache_request_headers</function>は、
<function>getallheaders</function>と呼ばれていました。PHP 4.3.0以
降、<function>getallheaders</function>は、
<function>apache_request_headers</function>へのエイリアスとなって
います。
</para>
</note>
<note>
<para>
環境変数を読み込むことにより、共通のCGI変数の値を取得することも可
能です。これは、PHPが<productname>Apache</productname>モジュール
として使用されているかどうかにはよらず動作します。
利用可能な<link linkend="language.variables.predefined">環境変数
</link>の一覧を見るには、<function>phpinfo</function>を使用してください。
</para>
</note>
&note.apache.nsapi-module;
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>apache_response_headers</function></member>
</simplelist>
</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
-->