cvs: phpdoc-zh /reference/url/functions parse-url.xml rawurldecode.xml rawurlencode.xml

From: Date: Wed, 26 Nov 2003 12:42:13 +0000
Subject: cvs: phpdoc-zh /reference/url/functions parse-url.xml rawurldecode.xml rawurlencode.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-1782@lists.php.net to get a copy of this message
nio Wed Nov 26 07:42:13 2003 EDT Added files: /phpdoc-zh/reference/url/functions parse-url.xml rawurldecode.xml rawurlencode.xml Log: Add files. Index: phpdoc-zh/reference/url/functions/parse-url.xml +++ phpdoc-zh/reference/url/functions/parse-url.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: nio $ --> <!-- EN-Revision: 1.8 Maintainer: nio Status: ready --> <!-- splitted from ./en/functions/url.xml, last change in rev 1.2 --> <refentry id="function.parse-url"> <refnamediv> <refname>parse_url</refname> <refpurpose>½âÎö URL£¬·µ»ØÆä×é³É²¿·Ö</refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>array</type><methodname>parse_url</methodname> <methodparam><type>string</type><parameter>url</parameter></methodparam> </methodsynopsis> <para> ´Ëº¯Êý·µ»ØÒ»¸ö¹ØÁªÊý×飬°üº¬ÏÖÓÐ URL µÄ¸÷ÖÖ×é³É²¿·Ö¡£Èç¹ûȱÉÙÁËÆäÖеÄijһ¸ö£¬Ôò²»»áΪÕâ¸ö×é³É²¿·Ö´´½¨Êý×éÏî¡£×é³É²¿·ÖΪ£º <itemizedlist> <listitem> <simpara> <structfield>scheme</structfield> - Èç http </simpara> </listitem> <listitem> <simpara> <structfield>host</structfield> </simpara> </listitem> <listitem> <simpara> <structfield>port</structfield> </simpara> </listitem> <listitem> <simpara> <structfield>user</structfield> </simpara> </listitem> <listitem> <simpara> <structfield>pass</structfield> </simpara> </listitem> <listitem> <simpara> <structfield>path</structfield> </simpara> </listitem> <listitem> <simpara> <structfield>query</structfield> - ÔÚÎʺŠ<literal>?</literal> Ö®ºó </simpara> </listitem> <listitem> <simpara> <structfield>fragment</structfield> - ÔÚÉ¢ÁзûºÅ <literal>#</literal> Ö®ºó </simpara> </listitem> </itemizedlist> </para> <para> ´Ëº¯Êý²¢ <emphasis role="strong">²»</emphasis> Òâζןø¶¨µÄ URL ÊǺϷ¨µÄ£¬ËüÖ»Êǽ«ÉÏ·½ÁбíÖеĸ÷²¿·Ö·Ö¿ª¡£<function>parse_url</function> ¿É½ÓÊܲ»ÍêÕûµÄ URL£¬²¢¾¡Á¿½«Æä½âÎöÕýÈ·¡£ </para> <note> <para> ´Ëº¯Êý¶ÔÏà¶Ô·¾¶µÄ URL ²»Æð×÷Óᣠ</para> </note> <example> <title><function>parse_url</function> ʾÀý</title> <screen> $ php -r 'print_r( parse_url("http://username:password@hostname/path?arg=value#anchor"));' Array ( [scheme] => http [host] => hostname [user] => username [pass] => password [path] => /path [query] => arg=value [fragment] => anchor ) $ php -r 'print_r( parse_url("http://invalid_host..name/"));' Array ( [scheme] => http [host] => invalid_host..name [path] => / ) </screen> </example> <para> ²Î¼û <function>pathinfo</function>¡¢<function>parse_str</function>¡¢<function>dirname</function> Óë <function>basename</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 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 --> Index: phpdoc-zh/reference/url/functions/rawurldecode.xml +++ phpdoc-zh/reference/url/functions/rawurldecode.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: nio $ --> <!-- EN-Revision: 1.4 Maintainer: nio Status: ready --> <!-- splitted from ./en/functions/url.xml, last change in rev 1.6 --> <refentry id="function.rawurldecode"> <refnamediv> <refname>rawurldecode</refname> <refpurpose>¶ÔÒѱàÂëµÄ URL ×Ö·û´®½øÐнâÂë</refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>string</type><methodname>rawurldecode</methodname> <methodparam><type>string</type><parameter>str</parameter></methodparam> </methodsynopsis> <para> ·µ»Ø×Ö·û´®£¬´Ë×Ö·û´®Öаٷֺţ¨<literal>%</literal>£©ºó¸úÁ½Î»Ê®Áù½øÖÆÊýµÄÐòÁж¼½«±»Ìæ»»³ÉÔ­Òå×Ö·û¡£ </para> <para> <example> <title><function>rawurldecode</function> ʾÀý</title> <programlisting role="php"> <![CDATA[ <?php echo rawurldecode('foo%20bar%40baz'); // foo bar@baz ?> ]]> </programlisting> </example> </para> <note> <para> <function>rawurldecode</function> ²»»á°Ñ¼ÓºÅ£¨'+'£©½âÂëΪ¿Õ¸ñ£¬¶ø <function>urldecode</function> ¿ÉÒÔ¡£ </para> </note> <simpara> ²Î¼û <function>rawurlencode</function>¡¢<function>urldecode</function> Óë <function>urlencode</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 --> Index: phpdoc-zh/reference/url/functions/rawurlencode.xml +++ phpdoc-zh/reference/url/functions/rawurlencode.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: nio $ --> <!-- EN-Revision: 1.6 Maintainer: nio Status: ready --> <!-- splitted from ./en/functions/url.xml, last change in rev 1.6 --> <refentry id="function.rawurlencode"> <refnamediv> <refname>rawurlencode</refname> <refpurpose>°´ÕÕ RFC 1738 ¶Ô URL ½øÐбàÂë</refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>string</type><methodname>rawurlencode</methodname> <methodparam><type>string</type><parameter>str</parameter></methodparam> </methodsynopsis> <para> ·µ»Ø×Ö·û´®£¬´Ë×Ö·û´®ÖгýÁË <literal>-_.</literal> Ö®ÍâµÄËùÓзÇ×ÖĸÊý×Ö×Ö·û¶¼½«±»Ìæ»»³É°Ù·ÖºÅ£¨<literal>%</literal>£©ºó¸úÁ½Î»Ê®Áù½øÖÆÊý¡£ÕâÊÇÔÚ RFC 1738 ÖÐÃèÊöµÄ±àÂ룬ÊÇΪÁ˱£»¤Ô­Òå×Ö·ûÒÔÃâÆä±»½âÊÍÎªÌØÊâµÄ URL ¶¨½ç·û£¬Í¬Ê±±£»¤ URL ¸ñʽÒÔÃâÆä±»´«ÊäýÌ壨ÏñһЩÓʼþϵͳ£©Ê¹ÓÃ×Ö·ûת»»Ê±ÅªÂÒ¡£ÀýÈ磬Èç¹ûÄãÏëÔÚ FTP µÄ URL Öаüº¬ÃÜÂ룺 </para> <para> <example> <title><function>rawurlencode</function> ʾÀý 1</title> <programlisting role="php"> <![CDATA[ <?php echo '<a href="ftp://user:', rawurlencode('foo @+%/'), '@ftp.my.com/x.txt">'; ?> ]]> </programlisting> </example> </para> <para> »òÕߣ¬Èç¹ûÄãÏëͨ¹ý URL µÄ PATH_INFO ¹¹³É²¿·ÖÈ¥´«µÝÐÅÏ¢£º </para> <para> <example> <title><function>rawurlencode</function> ʾÀý 2</title> <programlisting role="php"> <![CDATA[ <?php echo '<a href="http://x.com/department_list_script/', rawurlencode('sales and marketing/Miami'), '">'; ?> ]]> </programlisting> </example> </para> <simpara> ²Î¼û <function>rawurldecode</function>¡¢<function>urldecode</function>¡¢<function>urlencode</function> Óë <ulink url="&url.rfc;1738">RFC 1738</ulink>¡£ </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 -->

« previous php.doc.zh (#1782) next »