cvs: phpdoc-ja /reference/url/functions get-headers.xml http-build-query.xml
| From: | Hideyuki Shimooka | Date: | Sat, 20 Aug 2005 14:34:10 +0000 |
| Subject: | cvs: phpdoc-ja /reference/url/functions get-headers.xml http-build-query.xml | ||
| Groups: | php.doc.ja | ||
| Request: | Send a blank email to doc-ja+get-1144@lists.php.net to get a copy of this message | ||
shimooka Sat Aug 20 10:34:10 2005 EDT
Added files:
/phpdoc-ja/reference/url/functions http-build-query.xml
get-headers.xml
Log:
added japanese manual
http://cvs.php.net/co.php/phpdoc-ja/reference/url/functions/http-build-query.xml?r=1.1&p=1 Index: phpdoc-ja/reference/url/functions/http-build-query.xml +++ phpdoc-ja/reference/url/functions/http-build-query.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.10 Maintainer: shimooka Status: ready --> <refentry id="function.http-build-query"> <refnamediv> <refname>http_build_query</refname> <refpurpose>URL ã¨ã³ã³ã¼ããããã¯ã¨ãªæååãçæãã</refpurpose> </refnamediv> <refsect1> <title>説æ</title> <methodsynopsis> <type>string</type><methodname>http_build_query</methodname> <methodparam><type>array</type><parameter>formdata</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>numeric_prefix</parameter></methodparam> </methodsynopsis> <simpara> ä¸ãããã飿³é å (ãããã¯æ·»åé å) ãã URL ã¨ã³ã³ã¼ããããã¯ã¨ãªæååãçæãã¾ãã<parameter>formdata</parameter> ã«ã¯ããããã£ãå«ãé åãããã¯ãªãã¸ã§ã¯ããæå®å¯è½ã§ãã <parameter>formdata</parameter> é åã«ã¯åç´ã¯ä¸æ¬¡å æ§é ã ãããã¯é åã®é å (è¨ãæããã¨ãä»ã®é åãå«ãé å) ãæå®ãã¾ãã ããæ°å¤ã¤ã³ããã¯ã¹ãåºåºã¨ãªãé åã«ä½¿ç¨ãããã <parameter>numeric_prefix</parameter> ãæå®ãããå ´åã åºåºã¨ãªãé åã®è¦ç´ ã«å¯¾ããæ°å¤ã¤ã³ããã¯ã¹ã®åã«è¿½å ããã¾ãã ãã®é¢æ°ã¯ãã¼ã¿ãå¾ã§ PHP ãä»ã® CGI ã¢ããªã±ã¼ã·ã§ã³ã«ãã£ã¦ãã³ã¼ããããéã æ£å½ãªå¤æ°åã«ãªãããèæ ®ãã¾ãã </simpara> <note> <para> <link linkend="ini.arg-separator.output">arg_separator.output</link> ãåºåã®ããã®ã»ãã¬ã¼ã¿ã¨ãã¦ä½¿ç¨ããã¾ãã </para> </note> <example> <title><function>http_build_query</function> ã®ç°¡åãªä½¿ç¨æ³</title> <programlisting role="php"> <![CDATA[ <?php $data = array('foo'=>'bar', 'baz'=>'boom', 'cow'=>'milk', 'php'=>'hypertext processor'); echo http_build_query($data); // foo=bar&baz=boom&cow=milk&php=hypertext+processor ?> ]]> </programlisting> </example> <example> <title>æ°å¤ã¤ã³ããã¯ã¹è¦ç´ ã®å ´åã§ã® <function>http_build_query</function></title> <programlisting role="php"> <![CDATA[ <?php $data = array('foo', 'bar', 'baz', 'boom', 'cow' => 'milk', 'php' =>'hypertext processor'); echo http_build_query($data); /* åºå: 0=foo&1=bar&2=baz&3=boom&cow=milk&php=hypertext+processor */ echo http_build_query($data, 'myvar_'); /* åºå: myvar_0=foo&myvar_1=bar&myvar_2=baz&myvar_3=boom&cow=milk&php=hypertext+processor */ ?> ]]> </programlisting> </example> <example> <title>è¤éãªé åã®å ´åã§ã® <function>http_build_query</function></title> <programlisting role="php"> <![CDATA[ <?php $data = array('user'=>array('name'=>'Bob Smith', 'age'=>47, 'sex'=>'M', 'dob'=>'5/12/1956'), 'pastimes'=>array('golf', 'opera', 'poker', 'rap'), 'children'=>array('bobby'=>array('age'=>12, 'sex'=>'M'), 'sally'=>array('age'=>8, 'sex'=>'F')), 'CEO'); echo http_build_query($data, 'flags_'); ?> ]]> </programlisting> <para> ãã®ä¾ã¯ä»¥ä¸ãåºåãã¾ã: (å¯èªæ§ã®ããé©å®æãè¿ãã¦ãã¾ã) </para> <screen> <![CDATA[ user[name]=Bob+Smith&user[age]=47&user[sex]=M&user[dob]=5%1F12%1F1956& pastimes[0]=golf&pastimes[1]=opera&pastimes[2]=poker&pastimes[3]=rap& children[bobby][age]=12&children[bobby][sex]=M&children[sally][age]=8& children[sally][sex]=F&flags_0=CEO ]]> </screen> <para> <note> <para> åºåºã®é åå ã®æ°å¤ã¤ã³ããã¯ã¹è¦ç´ "CEO" ã®ã¿ã æ¥é è¾ãåãåãã¾ããpastimes 以ä¸ã«ããä»ã®æ°å¤ã¤ã³ããã¯ã¹ã¯ã æ£å½ãªå¤æ°åã«ããããã®æååã®æ¥é è¾ãè¦æ±ãã¾ããã </para> </note> </para> </example> <example> <title>ãªãã¸ã§ã¯ãã®å ´åã§ã® <function>http_build_query</function> ã®ä½¿ç¨</title> <programlisting role="php"> <![CDATA[ <?php class myClass { var $foo; var $baz; function myClass() { $this->foo = 'bar'; $this->baz = 'boom'; } } $data = new myClass(); echo http_build_query($data); // foo=bar&baz=boom ?> ]]> </programlisting> </example> <simpara> <function>parse_str</function>, <function>parse_url</function>, <function>urlencode</function>, <function>array_walk</function> ãåç §ãã ããã </simpara> </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 --> http://cvs.php.net/co.php/phpdoc-ja/reference/url/functions/get-headers.xml?r=1.1&p=1 Index: phpdoc-ja/reference/url/functions/get-headers.xml +++ phpdoc-ja/reference/url/functions/get-headers.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.6 Maintainer: shimooka Status: ready --> <refentry id="function.get-headers"> <refnamediv> <refname>get_headers</refname> <refpurpose> HTTP ãªã¯ã¨ã¹ãã«å¯¾ããã¬ã¹ãã³ã¹å ã§ ãµã¼ãã«ãã£ã¦éåºãããå ¨ã¦ã®ããããåå¾ãã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <methodsynopsis> <type>array</type><methodname>get_headers</methodname> <methodparam><type>string</type><parameter>url</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>format</parameter></methodparam> </methodsynopsis> <para> <function>get_headers</function> ã¯ãHTTP ãªã¯ã¨ã¹ãã«å¯¾ããã¬ã¹ãã³ã¹å ã§ ãµã¼ãã«ãã£ã¦éåºããããããã®é åãè¿ãã¾ãã 失æããå ´åãã¨ã©ã¼ã¬ãã« <constant>E_WARNING</constant> ãçºè¡ãããå ´å &false; ãè¿ãã¾ãã </para> <para> ãªãã·ã§ã³ã® <parameter>format</parameter> ãã©ã¡ã¼ã¿ã 1 ã«ã»ãããããå ´åã<function>get_headers</function> ã¯ã¬ã¹ãã³ã¹ããã¼ã¹ããé åã®ãã¼ãã»ãããã¾ãã </para> <para> <example> <title><function>get_headers</function> ã®ä¾</title> <programlisting role="php"> <![CDATA[ <?php $url = 'http://www.example.com'; print_r(get_headers($url)); print_r(get_headers($url, 1)); ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ Array ( [0] => HTTP/1.1 200 OK [1] => Date: Sat, 29 May 2004 12:28:13 GMT [2] => Server: Apache/1.3.27 (Unix) (Red-Hat/Linux) [3] => Last-Modified: Wed, 08 Jan 2003 23:11:55 GMT [4] => ETag: "3f80f-1b6-3e1cb03b" [5] => Accept-Ranges: bytes [6] => Content-Length: 438 [7] => Connection: close [8] => Content-Type: text/html ) Array ( [0] => HTTP/1.1 200 OK [Date] => Sat, 29 May 2004 12:28:14 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 ) ]]> </screen> </example> </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 -->
http://cvs.php.net/co.php/phpdoc-ja/reference/url/functions/http-build-query.xml?r=1.1&p=1 Index: phpdoc-ja/reference/url/functions/http-build-query.xml +++ phpdoc-ja/reference/url/functions/http-build-query.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.10 Maintainer: shimooka Status: ready --> <refentry id="function.http-build-query"> <refnamediv> <refname>http_build_query</refname> <refpurpose>URL ã¨ã³ã³ã¼ããããã¯ã¨ãªæååãçæãã</refpurpose> </refnamediv> <refsect1> <title>説æ</title> <methodsynopsis> <type>string</type><methodname>http_build_query</methodname> <methodparam><type>array</type><parameter>formdata</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>numeric_prefix</parameter></methodparam> </methodsynopsis> <simpara> ä¸ãããã飿³é å (ãããã¯æ·»åé å) ãã URL ã¨ã³ã³ã¼ããããã¯ã¨ãªæååãçæãã¾ãã<parameter>formdata</parameter> ã«ã¯ããããã£ãå«ãé åãããã¯ãªãã¸ã§ã¯ããæå®å¯è½ã§ãã <parameter>formdata</parameter> é åã«ã¯åç´ã¯ä¸æ¬¡å æ§é ã ãããã¯é åã®é å (è¨ãæããã¨ãä»ã®é åãå«ãé å) ãæå®ãã¾ãã ããæ°å¤ã¤ã³ããã¯ã¹ãåºåºã¨ãªãé åã«ä½¿ç¨ãããã <parameter>numeric_prefix</parameter> ãæå®ãããå ´åã åºåºã¨ãªãé åã®è¦ç´ ã«å¯¾ããæ°å¤ã¤ã³ããã¯ã¹ã®åã«è¿½å ããã¾ãã ãã®é¢æ°ã¯ãã¼ã¿ãå¾ã§ PHP ãä»ã® CGI ã¢ããªã±ã¼ã·ã§ã³ã«ãã£ã¦ãã³ã¼ããããéã æ£å½ãªå¤æ°åã«ãªãããèæ ®ãã¾ãã </simpara> <note> <para> <link linkend="ini.arg-separator.output">arg_separator.output</link> ãåºåã®ããã®ã»ãã¬ã¼ã¿ã¨ãã¦ä½¿ç¨ããã¾ãã </para> </note> <example> <title><function>http_build_query</function> ã®ç°¡åãªä½¿ç¨æ³</title> <programlisting role="php"> <![CDATA[ <?php $data = array('foo'=>'bar', 'baz'=>'boom', 'cow'=>'milk', 'php'=>'hypertext processor'); echo http_build_query($data); // foo=bar&baz=boom&cow=milk&php=hypertext+processor ?> ]]> </programlisting> </example> <example> <title>æ°å¤ã¤ã³ããã¯ã¹è¦ç´ ã®å ´åã§ã® <function>http_build_query</function></title> <programlisting role="php"> <![CDATA[ <?php $data = array('foo', 'bar', 'baz', 'boom', 'cow' => 'milk', 'php' =>'hypertext processor'); echo http_build_query($data); /* åºå: 0=foo&1=bar&2=baz&3=boom&cow=milk&php=hypertext+processor */ echo http_build_query($data, 'myvar_'); /* åºå: myvar_0=foo&myvar_1=bar&myvar_2=baz&myvar_3=boom&cow=milk&php=hypertext+processor */ ?> ]]> </programlisting> </example> <example> <title>è¤éãªé åã®å ´åã§ã® <function>http_build_query</function></title> <programlisting role="php"> <![CDATA[ <?php $data = array('user'=>array('name'=>'Bob Smith', 'age'=>47, 'sex'=>'M', 'dob'=>'5/12/1956'), 'pastimes'=>array('golf', 'opera', 'poker', 'rap'), 'children'=>array('bobby'=>array('age'=>12, 'sex'=>'M'), 'sally'=>array('age'=>8, 'sex'=>'F')), 'CEO'); echo http_build_query($data, 'flags_'); ?> ]]> </programlisting> <para> ãã®ä¾ã¯ä»¥ä¸ãåºåãã¾ã: (å¯èªæ§ã®ããé©å®æãè¿ãã¦ãã¾ã) </para> <screen> <![CDATA[ user[name]=Bob+Smith&user[age]=47&user[sex]=M&user[dob]=5%1F12%1F1956& pastimes[0]=golf&pastimes[1]=opera&pastimes[2]=poker&pastimes[3]=rap& children[bobby][age]=12&children[bobby][sex]=M&children[sally][age]=8& children[sally][sex]=F&flags_0=CEO ]]> </screen> <para> <note> <para> åºåºã®é åå ã®æ°å¤ã¤ã³ããã¯ã¹è¦ç´ "CEO" ã®ã¿ã æ¥é è¾ãåãåãã¾ããpastimes 以ä¸ã«ããä»ã®æ°å¤ã¤ã³ããã¯ã¹ã¯ã æ£å½ãªå¤æ°åã«ããããã®æååã®æ¥é è¾ãè¦æ±ãã¾ããã </para> </note> </para> </example> <example> <title>ãªãã¸ã§ã¯ãã®å ´åã§ã® <function>http_build_query</function> ã®ä½¿ç¨</title> <programlisting role="php"> <![CDATA[ <?php class myClass { var $foo; var $baz; function myClass() { $this->foo = 'bar'; $this->baz = 'boom'; } } $data = new myClass(); echo http_build_query($data); // foo=bar&baz=boom ?> ]]> </programlisting> </example> <simpara> <function>parse_str</function>, <function>parse_url</function>, <function>urlencode</function>, <function>array_walk</function> ãåç §ãã ããã </simpara> </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 --> http://cvs.php.net/co.php/phpdoc-ja/reference/url/functions/get-headers.xml?r=1.1&p=1 Index: phpdoc-ja/reference/url/functions/get-headers.xml +++ phpdoc-ja/reference/url/functions/get-headers.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.6 Maintainer: shimooka Status: ready --> <refentry id="function.get-headers"> <refnamediv> <refname>get_headers</refname> <refpurpose> HTTP ãªã¯ã¨ã¹ãã«å¯¾ããã¬ã¹ãã³ã¹å ã§ ãµã¼ãã«ãã£ã¦éåºãããå ¨ã¦ã®ããããåå¾ãã </refpurpose> </refnamediv> <refsect1> <title>説æ</title> <methodsynopsis> <type>array</type><methodname>get_headers</methodname> <methodparam><type>string</type><parameter>url</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>format</parameter></methodparam> </methodsynopsis> <para> <function>get_headers</function> ã¯ãHTTP ãªã¯ã¨ã¹ãã«å¯¾ããã¬ã¹ãã³ã¹å ã§ ãµã¼ãã«ãã£ã¦éåºããããããã®é åãè¿ãã¾ãã 失æããå ´åãã¨ã©ã¼ã¬ãã« <constant>E_WARNING</constant> ãçºè¡ãããå ´å &false; ãè¿ãã¾ãã </para> <para> ãªãã·ã§ã³ã® <parameter>format</parameter> ãã©ã¡ã¼ã¿ã 1 ã«ã»ãããããå ´åã<function>get_headers</function> ã¯ã¬ã¹ãã³ã¹ããã¼ã¹ããé åã®ãã¼ãã»ãããã¾ãã </para> <para> <example> <title><function>get_headers</function> ã®ä¾</title> <programlisting role="php"> <![CDATA[ <?php $url = 'http://www.example.com'; print_r(get_headers($url)); print_r(get_headers($url, 1)); ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ Array ( [0] => HTTP/1.1 200 OK [1] => Date: Sat, 29 May 2004 12:28:13 GMT [2] => Server: Apache/1.3.27 (Unix) (Red-Hat/Linux) [3] => Last-Modified: Wed, 08 Jan 2003 23:11:55 GMT [4] => ETag: "3f80f-1b6-3e1cb03b" [5] => Accept-Ranges: bytes [6] => Content-Length: 438 [7] => Connection: close [8] => Content-Type: text/html ) Array ( [0] => HTTP/1.1 200 OK [Date] => Sat, 29 May 2004 12:28:14 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 ) ]]> </screen> </example> </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 -->