cvs: peardoc /ja/package/http http.xml /ja/package/http/http date.xml head.xml negotiatelanguage.xml redirect.xml
| From: | Tadashi Jokagi | Date: | Tue, 17 Feb 2004 03:42:24 +0000 |
| Subject: | cvs: peardoc /ja/package/http http.xml /ja/package/http/http date.xml head.xml negotiatelanguage.xml redirect.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-2565@lists.php.net to get a copy of this message | ||
elf Mon Feb 16 22:42:24 2004 EDT
Added files:
/peardoc/ja/package/http http.xml
/peardoc/ja/package/http/http date.xml head.xml
negotiatelanguage.xml redirect.xml
Log:
o added japanese manual.
http://cvs.php.net/co.php/peardoc/ja/package/http/http.xml?r=1.1&p=1 Index: peardoc/ja/package/http/http.xml +++ peardoc/ja/package/http/http.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 --> <sect1 id="package.http.http"> <title>HTTP</title> <para> Hyper-Text-Transfer-Protocolã«é¢é£ããã æç¨ãªéç颿°ã»ãããæä¾ãã¾ãã </para> &package.http.http.date; &package.http.http.head; &package.http.http.negotiatelanguage; &package.http.http.redirect; </sect1> <!-- 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 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 --> http://cvs.php.net/co.php/peardoc/ja/package/http/http/date.xml?r=1.1&p=1 Index: peardoc/ja/package/http/http/date.xml +++ peardoc/ja/package/http/http/date.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 --> <refentry id="package.http.http.date"> <refnamediv> <refname>HTTP::Date</refname> <refpurpose>æ¥ä»ã®æ¸å¼</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTTP.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>HTTP::date</function></funcdef> <paramdef>integer <parameter>time</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.http.http.date.desc"> &title.desc; <para> UNIXã¿ã¤ã ã¹ã¿ã³ããRFCæºæ ã®HTTPãããè¡ã«å¤æãã¾ãã ãã®é¢æ°ã¯php.iniã®<quote>y2k_compliance</quote>ãã£ã¬ã¯ãã£ããå°éãã¾ãã </para> </refsect1> <refsect1 id="package.http.http.date.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>integer $time</parameter> - UNIXã¿ã¤ã ã¹ã¿ã³ãã§ãã </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.http.http.date.return"> &title.returns; <para> <parameter>string</parameter> - RFCæºæ ã®æ¥ä»ãããè¡ãè¿ãã¾ãã </para> </refsect1> <refsect1 id="package.http.http.date.note"> &title.note; ¬e.canstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/ja/package/http/http/head.xml?r=1.1&p=1 Index: peardoc/ja/package/http/http/head.xml +++ peardoc/ja/package/http/http/head.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 --> <refentry id="package.http.http.head"> <refnamediv> <refname>HTTP::head</refname> <refpurpose>"HEAD"ã³ãã³ãã®éä¿¡</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTTP.php'; </funcsynopsisinfo> <funcprototype> <funcdef>array <function>HTTP::head</function></funcdef> <paramdef>string <parameter>$url</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.http.http.head.desc"> &title.desc; <para> ãµã¼ãã¼ã¸ãHEADãHTTPã³ãã³ããéãã 飿³ã®é åä¸ã§ãããã¼ãè¿ãã¾ãã </para> </refsect1> <refsect1 id="package.http.http.head.example"> &title.example; <para> <example> <title>example.comã¸HEADãªã¯ã¨ã¹ã</title> <programlisting role="php"> <![CDATA[ require_once "PEAR.php"; require_once "HTTP.php"; $result = HTTP::head("http://example.com/"); if (PEAR::isError($result)) { echo "Error: " . $result->getMessage(); } else { echo "<pre>"; print_r($result); echo "</pre>"; } ]]> </programlisting> </example> <function>print_r</function>å¼ã³åºãã®åºå㯠<link linkend="package.http.http.head.return.example">ä¸è¨</link> ã®éãã§ãã </para> </refsect1> <refsect1 id="package.http.http.head.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $url</parameter> - æå¹ãªçµ¶å¯¾URL </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.http.http.head.return"> &title.returns; <para> <parameter>array</parameter> - ãããã¼è¡ãå«ãé åã&class.pear-error;ãè¿ãã¾ãã </para> <para id="package.http.http.head.return.example"> åºåä¾: <programlisting role="php"> <![CDATA[ Array ( [response_code] => 200 [response] => HTTP/1.1 200 OK [Date] => Tue, 25 Nov 2003 22:08:57 GMT [Server] => Apache/1.3.27 (Unix) (Red-Hat/Linux) [Last-Modified] => Wed, 08 Jan 2003 23:11:55 GMT [ETag] => "3f80f-1b6-3e1cb03b" [Accept-Ranges] => bytes [Content-Length] => 438 [Connection] => close [Content-Type] => text/html ) ]]> </programlisting> </para> </refsect1> <refsect1 id="package.http.http.head.throws"> &title.throws; <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="4"> <thead> <row> <entry>ã¨ã©ã¼ã³ã¼ã</entry> <entry>ã¨ã©ã¼ã¡ãã»ã¼ã¸</entry> <entry>æå³</entry> <entry>解決ç</entry> </row> </thead> <tbody> <row> <entry>&null;</entry> <entry> <quote>HTTP::head Error <parameter>$errstr</parameter> (<parameter>$erno</parameter>)</quote> </entry> <entry> ãµã¼ãã¼ã¸ã®æ¥ç¶ã«å¤±æãã¾ããã </entry> <entry> ããªãã®ãã¹ãã¨<parameter>$url</parameter>ã«ä¸ããURLã®æ¥ç¶ã調ã¹ã¾ãã </entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.http.http.head.note"> &title.note; ¬e.canstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/ja/package/http/http/negotiatelanguage.xml?r=1.1&p=1 Index: peardoc/ja/package/http/http/negotiatelanguage.xml +++ peardoc/ja/package/http/http/negotiatelanguage.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 --> <refentry id="package.http.http.negotiatelanguage"> <refnamediv> <refname>HTTP::negotiateLanguage</refname> <refpurpose>ã¦ã¼ã¶ã®ãã©ã¦ã¶ã¼ã¨è¨èªãåå®ãã</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTTP.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>HTTP::negotiateLanguage</function></funcdef> <paramdef>array <parameter>$supported</parameter></paramdef> <paramdef>string <parameter>$default = 'en_US'</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.http.http.negotiatelanguage.desc"> &title.desc; <para> Accept-Language HTTPãããã¼ãã¦ã¼ã¶ã®ãã¹ãã¢ãã¬ã¹ã«ãã£ã¦ã ã¦ã¼ã¶ã®ãã©ã¦ã¶ã¼ã¨è¨èªãåå®ãã¾ãã è¨èªã³ã¼ãã¯ä¸ã¶å½ã§è©±ãããè¨èªã®å½¢å¼ãllããã ãããã¯ç¹å¥ã®å½ã§è©±ãããè¨èªã§ã¯ãll-CCãã«ãªãã¾ãã ä¾ãã°ãç±³å½ã®è±èªã¯ãen-USãã§ãã䏿¹ã¤ã®ãªã¹è±èªã¯ãen-UKãã§ãã ãã«ãã¬ã«ã§è©±ããããããªãã«ãã¬ã«èªã¯ãpt-PTãã§ãã 䏿¹ãã©ã¸ã«ã®ãã«ãã¬ã«èªã¯ãpt-BRãã§ãã 2æåã®å½ã³ã¼ãã¯ISO 3166æ¨æºã§è¦ã¤ãããã¾ãã </para> <para> <literal>Accept-Language:</literal>ãããã夿°ã®å¤ããµãã¼ãããä¾ <programlisting> Accept-Language: en-UK;q=0.7, en-US;q=0.6, no;q=1.0, dk;q=0.8 </programlisting> </para> </refsect1> <refsect1 id="package.http.http.negotiatelanguage.example"> &title.example; <para> <example> <title>使ç¨ä¾</title> <programlisting role="php"> require_once "HTTP.php"; $supported = array("de" => true, "en-US" => true); echo HTTP::negotiateLanguage($supported); </programlisting> </example> </para> <para> ãã®ä¾ã¯ã è¨èªã®ãã¡ã®ã©ãããã¦ã¼ã¶ã®ã·ã¹ãã ä¸ã§ <varname>ãµãã¼ããããå ´å</varname>ã ã¦ã¼ã¶ã¼ã¨ã¼ã¸ã§ã³ãã¯ãã´ã·ã¨ã¼ã·ã§ã³ãã¾ãã ãã´ã·ã¨ã¼ã·ã§ã³ãæ£ã®çµæãæã£ã¦ããå ´åã æã好ã¾ããè¨èªã®è¨èªã³ã¼ããåºåããã¾ãã ããã§ãªããã°ãããã©ã«ãè¨èªã³ã¼ã(en-US)ãåºåããã¾ãã </para> <para> å½éåããã(ããã¯è¤æ°ã®è¨èªã§å©ç¨å¯è½ãª) ã¦ã§ããµã¤ããã¼ã¸ãéçºããå ´åã¯ã è¨èªãã´ã·ã¨ã¼ã·ã§ã³ãå¯è½ã«ãããã¨ã¯å¤§ããªæ¯æ´ã«ãªãã¾ãã ã¦ã¼ã¶ã¼ã¯ãã´ã·ã¨ã¼ã·ã§ã³ã使ç¨ãã¦ã 常ã«å¥½ã¾ããè¨èªã§ãã¼ã¸ãåå¾ã§ããã§ããã (ãããã¯ã¦ã¼ã¶ã¼ã¨ã¼ã¸ã§ã³ããé©åã«æ§æããã¦ããã¨ä»®å®ãã¾ã)ã </para> </refsect1> <refsect1 id="package.http.http.negotiatelanguage.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>array $supported</parameter> - ã¢ããªã±ã¼ã·ã§ã³ã«æ¯æ´ãããè¨èªã³ã¼ã(å½ã³ã¼ã)ã«ãã£ã¦ ã¤ã³ããã¯ã¹ãä»ãããã飿³ã®é åã å¤ã¯&true;ã§ãªããã°ãªãã¾ããã </para> </listitem> <listitem> <para> <parameter>string $default</parameter> - ä»ã®è¨èªã®ã©ãããã´ã·ã¨ã¼ã·ã§ã³ã®éã«è¦ã¤ãããªãå ´åã«ã 使ç¨ãããã¹ãããã©ã«ãè¨èªã </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.http.http.negotiatelanguage.return"> &title.returns; <para> <parameter>string</parameter> - è¨èªã³ã¼ãã§ãã </para> </refsect1> <refsect1 id="package.http.http.negotiatelanguage.note"> &title.note; ¬e.canstatic; <para> è¿ãããè¨èªã¯ãã³ãã ãã§ã! ã¯ã©ã¤ã¢ã³ãã«ãã£ã¦å®¹èªãããè¨èªãéããã¨ã¯ãªãã·ã§ã³ã§ãã ãã©ã¦ã¶ã¼ã®è¨èªã»ããã£ã³ã°ã¯ã¦ã¼ã¶ã®æ¯å½èªããå¿ è¦ã¯ããã¾ããã - ä¾ãã°ã¹ãã¤ã³ã®ã¤ã³ã¿ã¼ãããã«ãã§ã§ãã¤ãã®æ è¡è ãå± ãå ´åãªã©ã <classname>Net_Geo</classname> ããã±ã¼ã¸ã®çµæãçµã¿åããããã¨ã«ããã çµæãæ¹åãããã¨ãã§ãã¾ãã ããã¨ã¯å¥ã«ã ã¦ã¼ã¶ã«æåã§åªå ããè¨èªã¡ãã¥ã¼ãé¸ã¶æ©ä¼ãä¸ããã¹ãã§ãã </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 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 --> http://cvs.php.net/co.php/peardoc/ja/package/http/http/redirect.xml?r=1.1&p=1 Index: peardoc/ja/package/http/http/redirect.xml +++ peardoc/ja/package/http/http/redirect.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 --> <refentry id="package.http.http.redirect"> <refnamediv> <refname>HTTP::redirect</refname> <refpurpose>ã¯ã©ã¤ã¢ã³ãããªãã¤ã¬ã¯ããã</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTTP.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>HTTP::redirect</function></funcdef> <paramdef>string <parameter>url</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.http.http.redirect.desc"> &title.desc; <para> ãã®é¢æ°ã¯ã¯ã©ã¤ã¢ã³ãããªãã¤ã¬ã¯ããã¾ãã ããã¯<literal>Location:</literal>ããããåºåãã çµäºãããã¨ã§å®è¡ãã¾ãã </para> </refsect1> <refsect1 id="package.http.http.redirect.example"> &title.example; <para> <example> <title>å¥ã®ãµã¤ãã«ãªãã¤ã¬ã¯ããã</title> <programlisting role="php"> require_once 'HTTP.php'; HTTP::redirect("http://example.com/"); </programlisting> </example> </para> <para> <example> <title>ãã¼ã«ã«ãªãã¤ã¬ã¯ã</title> <programlisting role="php"> require_once 'HTTP.php'; HTTP::redirect("/foo.php"); </programlisting> </example> ããã¯ã<filename>/foo.php</filename>ã¸ã®ã¯ã©ã¤ã¢ã³ãã転éãã¾ãã ãã®é¢æ°ã¯<ulink url="&url.rfc;2616">RFC 2616</ulink>.ãè¦æ±ãã æ£ãããã¹ãåãä»å ãã¾ãã </para> </refsect1> <refsect1 id="package.http.http.redirect.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $url</parameter> - ã¯ã©ã¤ã¢ã³ãã転éãã¹ãæ°è¦URLã§ãã </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.http.http.redirect.note"> &title.note; ¬e.canstatic; <para> <function>redirect</function>ãå¼ã¶åã¯ã ã¯ã©ã¤ã¢ã³ãã«ã©ããªç¨®é¡ã®ãã¼ã¿ãéããªãããã«ãã¦ãã ããã </para> <para> Locationãããã¯çµ¶å¯¾çãªURLãè¦æ±ãã¾ãã ããä¸ããããªããã°ã<parameter>$url</parameter>ããæ§ç¯ãã <function>redirect</function>ã試ã¿ã¾ãã </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 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 -->
http://cvs.php.net/co.php/peardoc/ja/package/http/http.xml?r=1.1&p=1 Index: peardoc/ja/package/http/http.xml +++ peardoc/ja/package/http/http.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 --> <sect1 id="package.http.http"> <title>HTTP</title> <para> Hyper-Text-Transfer-Protocolã«é¢é£ããã æç¨ãªéç颿°ã»ãããæä¾ãã¾ãã </para> &package.http.http.date; &package.http.http.head; &package.http.http.negotiatelanguage; &package.http.http.redirect; </sect1> <!-- 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 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 --> http://cvs.php.net/co.php/peardoc/ja/package/http/http/date.xml?r=1.1&p=1 Index: peardoc/ja/package/http/http/date.xml +++ peardoc/ja/package/http/http/date.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 --> <refentry id="package.http.http.date"> <refnamediv> <refname>HTTP::Date</refname> <refpurpose>æ¥ä»ã®æ¸å¼</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTTP.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>HTTP::date</function></funcdef> <paramdef>integer <parameter>time</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.http.http.date.desc"> &title.desc; <para> UNIXã¿ã¤ã ã¹ã¿ã³ããRFCæºæ ã®HTTPãããè¡ã«å¤æãã¾ãã ãã®é¢æ°ã¯php.iniã®<quote>y2k_compliance</quote>ãã£ã¬ã¯ãã£ããå°éãã¾ãã </para> </refsect1> <refsect1 id="package.http.http.date.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>integer $time</parameter> - UNIXã¿ã¤ã ã¹ã¿ã³ãã§ãã </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.http.http.date.return"> &title.returns; <para> <parameter>string</parameter> - RFCæºæ ã®æ¥ä»ãããè¡ãè¿ãã¾ãã </para> </refsect1> <refsect1 id="package.http.http.date.note"> &title.note; ¬e.canstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/ja/package/http/http/head.xml?r=1.1&p=1 Index: peardoc/ja/package/http/http/head.xml +++ peardoc/ja/package/http/http/head.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 --> <refentry id="package.http.http.head"> <refnamediv> <refname>HTTP::head</refname> <refpurpose>"HEAD"ã³ãã³ãã®éä¿¡</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTTP.php'; </funcsynopsisinfo> <funcprototype> <funcdef>array <function>HTTP::head</function></funcdef> <paramdef>string <parameter>$url</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.http.http.head.desc"> &title.desc; <para> ãµã¼ãã¼ã¸ãHEADãHTTPã³ãã³ããéãã 飿³ã®é åä¸ã§ãããã¼ãè¿ãã¾ãã </para> </refsect1> <refsect1 id="package.http.http.head.example"> &title.example; <para> <example> <title>example.comã¸HEADãªã¯ã¨ã¹ã</title> <programlisting role="php"> <![CDATA[ require_once "PEAR.php"; require_once "HTTP.php"; $result = HTTP::head("http://example.com/"); if (PEAR::isError($result)) { echo "Error: " . $result->getMessage(); } else { echo "<pre>"; print_r($result); echo "</pre>"; } ]]> </programlisting> </example> <function>print_r</function>å¼ã³åºãã®åºå㯠<link linkend="package.http.http.head.return.example">ä¸è¨</link> ã®éãã§ãã </para> </refsect1> <refsect1 id="package.http.http.head.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $url</parameter> - æå¹ãªçµ¶å¯¾URL </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.http.http.head.return"> &title.returns; <para> <parameter>array</parameter> - ãããã¼è¡ãå«ãé åã&class.pear-error;ãè¿ãã¾ãã </para> <para id="package.http.http.head.return.example"> åºåä¾: <programlisting role="php"> <![CDATA[ Array ( [response_code] => 200 [response] => HTTP/1.1 200 OK [Date] => Tue, 25 Nov 2003 22:08:57 GMT [Server] => Apache/1.3.27 (Unix) (Red-Hat/Linux) [Last-Modified] => Wed, 08 Jan 2003 23:11:55 GMT [ETag] => "3f80f-1b6-3e1cb03b" [Accept-Ranges] => bytes [Content-Length] => 438 [Connection] => close [Content-Type] => text/html ) ]]> </programlisting> </para> </refsect1> <refsect1 id="package.http.http.head.throws"> &title.throws; <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="4"> <thead> <row> <entry>ã¨ã©ã¼ã³ã¼ã</entry> <entry>ã¨ã©ã¼ã¡ãã»ã¼ã¸</entry> <entry>æå³</entry> <entry>解決ç</entry> </row> </thead> <tbody> <row> <entry>&null;</entry> <entry> <quote>HTTP::head Error <parameter>$errstr</parameter> (<parameter>$erno</parameter>)</quote> </entry> <entry> ãµã¼ãã¼ã¸ã®æ¥ç¶ã«å¤±æãã¾ããã </entry> <entry> ããªãã®ãã¹ãã¨<parameter>$url</parameter>ã«ä¸ããURLã®æ¥ç¶ã調ã¹ã¾ãã </entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.http.http.head.note"> &title.note; ¬e.canstatic; </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 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 --> http://cvs.php.net/co.php/peardoc/ja/package/http/http/negotiatelanguage.xml?r=1.1&p=1 Index: peardoc/ja/package/http/http/negotiatelanguage.xml +++ peardoc/ja/package/http/http/negotiatelanguage.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 --> <refentry id="package.http.http.negotiatelanguage"> <refnamediv> <refname>HTTP::negotiateLanguage</refname> <refpurpose>ã¦ã¼ã¶ã®ãã©ã¦ã¶ã¼ã¨è¨èªãåå®ãã</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTTP.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>HTTP::negotiateLanguage</function></funcdef> <paramdef>array <parameter>$supported</parameter></paramdef> <paramdef>string <parameter>$default = 'en_US'</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.http.http.negotiatelanguage.desc"> &title.desc; <para> Accept-Language HTTPãããã¼ãã¦ã¼ã¶ã®ãã¹ãã¢ãã¬ã¹ã«ãã£ã¦ã ã¦ã¼ã¶ã®ãã©ã¦ã¶ã¼ã¨è¨èªãåå®ãã¾ãã è¨èªã³ã¼ãã¯ä¸ã¶å½ã§è©±ãããè¨èªã®å½¢å¼ãllããã ãããã¯ç¹å¥ã®å½ã§è©±ãããè¨èªã§ã¯ãll-CCãã«ãªãã¾ãã ä¾ãã°ãç±³å½ã®è±èªã¯ãen-USãã§ãã䏿¹ã¤ã®ãªã¹è±èªã¯ãen-UKãã§ãã ãã«ãã¬ã«ã§è©±ããããããªãã«ãã¬ã«èªã¯ãpt-PTãã§ãã 䏿¹ãã©ã¸ã«ã®ãã«ãã¬ã«èªã¯ãpt-BRãã§ãã 2æåã®å½ã³ã¼ãã¯ISO 3166æ¨æºã§è¦ã¤ãããã¾ãã </para> <para> <literal>Accept-Language:</literal>ãããã夿°ã®å¤ããµãã¼ãããä¾ <programlisting> Accept-Language: en-UK;q=0.7, en-US;q=0.6, no;q=1.0, dk;q=0.8 </programlisting> </para> </refsect1> <refsect1 id="package.http.http.negotiatelanguage.example"> &title.example; <para> <example> <title>使ç¨ä¾</title> <programlisting role="php"> require_once "HTTP.php"; $supported = array("de" => true, "en-US" => true); echo HTTP::negotiateLanguage($supported); </programlisting> </example> </para> <para> ãã®ä¾ã¯ã è¨èªã®ãã¡ã®ã©ãããã¦ã¼ã¶ã®ã·ã¹ãã ä¸ã§ <varname>ãµãã¼ããããå ´å</varname>ã ã¦ã¼ã¶ã¼ã¨ã¼ã¸ã§ã³ãã¯ãã´ã·ã¨ã¼ã·ã§ã³ãã¾ãã ãã´ã·ã¨ã¼ã·ã§ã³ãæ£ã®çµæãæã£ã¦ããå ´åã æã好ã¾ããè¨èªã®è¨èªã³ã¼ããåºåããã¾ãã ããã§ãªããã°ãããã©ã«ãè¨èªã³ã¼ã(en-US)ãåºåããã¾ãã </para> <para> å½éåããã(ããã¯è¤æ°ã®è¨èªã§å©ç¨å¯è½ãª) ã¦ã§ããµã¤ããã¼ã¸ãéçºããå ´åã¯ã è¨èªãã´ã·ã¨ã¼ã·ã§ã³ãå¯è½ã«ãããã¨ã¯å¤§ããªæ¯æ´ã«ãªãã¾ãã ã¦ã¼ã¶ã¼ã¯ãã´ã·ã¨ã¼ã·ã§ã³ã使ç¨ãã¦ã 常ã«å¥½ã¾ããè¨èªã§ãã¼ã¸ãåå¾ã§ããã§ããã (ãããã¯ã¦ã¼ã¶ã¼ã¨ã¼ã¸ã§ã³ããé©åã«æ§æããã¦ããã¨ä»®å®ãã¾ã)ã </para> </refsect1> <refsect1 id="package.http.http.negotiatelanguage.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>array $supported</parameter> - ã¢ããªã±ã¼ã·ã§ã³ã«æ¯æ´ãããè¨èªã³ã¼ã(å½ã³ã¼ã)ã«ãã£ã¦ ã¤ã³ããã¯ã¹ãä»ãããã飿³ã®é åã å¤ã¯&true;ã§ãªããã°ãªãã¾ããã </para> </listitem> <listitem> <para> <parameter>string $default</parameter> - ä»ã®è¨èªã®ã©ãããã´ã·ã¨ã¼ã·ã§ã³ã®éã«è¦ã¤ãããªãå ´åã«ã 使ç¨ãããã¹ãããã©ã«ãè¨èªã </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.http.http.negotiatelanguage.return"> &title.returns; <para> <parameter>string</parameter> - è¨èªã³ã¼ãã§ãã </para> </refsect1> <refsect1 id="package.http.http.negotiatelanguage.note"> &title.note; ¬e.canstatic; <para> è¿ãããè¨èªã¯ãã³ãã ãã§ã! ã¯ã©ã¤ã¢ã³ãã«ãã£ã¦å®¹èªãããè¨èªãéããã¨ã¯ãªãã·ã§ã³ã§ãã ãã©ã¦ã¶ã¼ã®è¨èªã»ããã£ã³ã°ã¯ã¦ã¼ã¶ã®æ¯å½èªããå¿ è¦ã¯ããã¾ããã - ä¾ãã°ã¹ãã¤ã³ã®ã¤ã³ã¿ã¼ãããã«ãã§ã§ãã¤ãã®æ è¡è ãå± ãå ´åãªã©ã <classname>Net_Geo</classname> ããã±ã¼ã¸ã®çµæãçµã¿åããããã¨ã«ããã çµæãæ¹åãããã¨ãã§ãã¾ãã ããã¨ã¯å¥ã«ã ã¦ã¼ã¶ã«æåã§åªå ããè¨èªã¡ãã¥ã¼ãé¸ã¶æ©ä¼ãä¸ããã¹ãã§ãã </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 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 --> http://cvs.php.net/co.php/peardoc/ja/package/http/http/redirect.xml?r=1.1&p=1 Index: peardoc/ja/package/http/http/redirect.xml +++ peardoc/ja/package/http/http/redirect.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 --> <refentry id="package.http.http.redirect"> <refnamediv> <refname>HTTP::redirect</refname> <refpurpose>ã¯ã©ã¤ã¢ã³ãããªãã¤ã¬ã¯ããã</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTTP.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>HTTP::redirect</function></funcdef> <paramdef>string <parameter>url</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.http.http.redirect.desc"> &title.desc; <para> ãã®é¢æ°ã¯ã¯ã©ã¤ã¢ã³ãããªãã¤ã¬ã¯ããã¾ãã ããã¯<literal>Location:</literal>ããããåºåãã çµäºãããã¨ã§å®è¡ãã¾ãã </para> </refsect1> <refsect1 id="package.http.http.redirect.example"> &title.example; <para> <example> <title>å¥ã®ãµã¤ãã«ãªãã¤ã¬ã¯ããã</title> <programlisting role="php"> require_once 'HTTP.php'; HTTP::redirect("http://example.com/"); </programlisting> </example> </para> <para> <example> <title>ãã¼ã«ã«ãªãã¤ã¬ã¯ã</title> <programlisting role="php"> require_once 'HTTP.php'; HTTP::redirect("/foo.php"); </programlisting> </example> ããã¯ã<filename>/foo.php</filename>ã¸ã®ã¯ã©ã¤ã¢ã³ãã転éãã¾ãã ãã®é¢æ°ã¯<ulink url="&url.rfc;2616">RFC 2616</ulink>.ãè¦æ±ãã æ£ãããã¹ãåãä»å ãã¾ãã </para> </refsect1> <refsect1 id="package.http.http.redirect.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $url</parameter> - ã¯ã©ã¤ã¢ã³ãã転éãã¹ãæ°è¦URLã§ãã </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.http.http.redirect.note"> &title.note; ¬e.canstatic; <para> <function>redirect</function>ãå¼ã¶åã¯ã ã¯ã©ã¤ã¢ã³ãã«ã©ããªç¨®é¡ã®ãã¼ã¿ãéããªãããã«ãã¦ãã ããã </para> <para> Locationãããã¯çµ¶å¯¾çãªURLãè¦æ±ãã¾ãã ããä¸ããããªããã°ã<parameter>$url</parameter>ããæ§ç¯ãã <function>redirect</function>ã試ã¿ã¾ãã </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 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 -->