cvs: phpdoc-zh /appendices wrappers.xml

From: Date: Thu, 15 May 2003 20:04:02 +0000
Subject: cvs: phpdoc-zh /appendices wrappers.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-1458@lists.php.net to get a copy of this message
dallas Thu May 15 16:04:02 2003 EDT Modified files: /phpdoc-zh/appendices wrappers.xml Log: Updated. Some parts just leave as is.

Index: phpdoc-zh/appendices/wrappers.xml diff -u phpdoc-zh/appendices/wrappers.xml:1.13 phpdoc-zh/appendices/wrappers.xml:1.14 --- phpdoc-zh/appendices/wrappers.xml:1.13 Wed Apr 30 23:59:41 2003 +++ phpdoc-zh/appendices/wrappers.xml Thu May 15 16:04:02 2003 @@ -1,21 +1,21 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.13 $ --> +<!-- $Revision: 1.14 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision:1.16 Maintainer: dallas Status: ready --> +<!-- EN-Revision:1.17 Maintainer: dallas Status: ready --> <appendix id="wrappers"> <title>Ö§³ÖµÄЭÒ飯·âװЭÒéÁбí</title> <para> ÒÔÏÂÊÇ PHP ÄÚÖÃÓÃÓÚÎļþϵͳº¯ÊýÀýÈç <function>fopen</function> ºÍ <function>copy</function> µÄ URL ·ç¸ñЭÒéÁÐ±í¡£³ýÁËÕâЩ·âװЭÒéÖ®Í⣬´Ó - PHP 4.3 Æð£¬Ä㻹¿ÉÒÔÓà PHP ½Å±¾ºÍ + <literal>PHP 4.3</literal> Æð£¬Ä㻹¿ÉÒÔÓà PHP ½Å±¾ºÍ <function>stream_register_wrapper</function> д×Ô¼ºµÄ·âװЭÒé¡£ </para> <section id="wrappers.http"> <title>HTTP ºÍ HTTPS</title> - <simpara>PHP 3£¬PHP 4¡£×Ô PHP 4.3 ÆðÖ§³Ö <filename>https://</filename></simpara> + <simpara>PHP 3£¬PHP 4¡£×Ô <literal>PHP 4.3.0</literal> ÆðÖ§³Ö <filename>https://</filename></simpara> <itemizedlist> <listitem><simpara><filename>http://example.com</filename></simpara></listitem> @@ -36,7 +36,7 @@ <simpara> Á÷ÔÊÐí·ÃÎÊ×ÊÔ´µÄ<emphasis>ÕýÎÄ</emphasis>£¬±¨Í·²¿·Ö±£´æÔÚ <varname>$http_response_header</varname> ±äÁ¿ÖС£×Ô - PHP 4.3 Æð£¬¿ÉÒÔÓà + <literal>PHP 4.3.0</literal> Æð£¬¿ÉÒÔÓà <function>stream_get_meta_data</function> µÃµ½±¨Í·¡£ </simpara> <simpara> @@ -44,12 +44,54 @@ </simpara> <note> <simpara> - ×Ô PHP 4.3 Æð¿ªÊ¼Ö§³Ö HTTPS£¬ÐèÒªÔÚ±àÒëʱ¼ÓÈë OpenSSL µÄÖ§³Ö¡£ + ×Ô <literal>PHP 4.3.0</literal> Æð¿ªÊ¼Ö§³Ö HTTPS£¬ÐèÒªÔÚ±àÒëʱ¼ÓÈë OpenSSL µÄÖ§³Ö¡£ </simpara> </note> <para> <table> - <title>ÉÏÏÂÎÄÑ¡Ïcontext option£¬×Ô <literal>PHP 5.0</literal> Æð£©</title> + <title>Wrapper Summary</title> + <tgroup cols="2"> + <thead> + <row> + <entry>ÊôÐÔ</entry> + </row> + </thead> + <tbody> + <row> + <entry>ÊÜ <literal>allow_url_fopen</literal> ÏÞÖÆ</entry> + <entry>Yes</entry> + </row> + <row> + <entry>Allows Reading</entry> + <entry>Yes</entry> + </row> + <row> + <entry>Allows Writing</entry> + <entry>No</entry> + </row> + <row> + <entry>Allows Appending</entry> + <entry>No</entry> + </row> + <row> + <entry>Allows Simultaneous Reading and Writing</entry> + <entry>N/A</entry> + </row> + <row> + <entry>Supports <function>stat</function></entry> + <entry>No</entry> + </row> + <row> + <entry>Supports <function>unlink</function></entry> + <entry>No</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + <para> + <table> + <title>ÉÏÏÂÎÄÑ¡Ïcontext options£¬×Ô <literal>PHP 5.0</literal> Æð£©</title> <tgroup cols="3"> <thead> <row> @@ -110,7 +152,7 @@ <section id="wrappers.ftp"> <title>FTP ºÍ FTPS</title> - <simpara>PHP 3£¬PHP 4¡£×Ô PHP 4.3 ÆðÖ§³Ö <filename>ftps://</filename></simpara> + <simpara>PHP 3£¬PHP 4¡£×Ô <literal>PHP 4.3.0</literal> ÆðÖ§³Ö <filename>ftps://</filename></simpara> <itemizedlist> <listitem><simpara><filename>ftp://example.com/pub/file.txt</filename></simpara></listitem> @@ -140,17 +182,65 @@ </simpara> </note> <simpara> - <filename>ftps://</filename> ÊÇ PHP 4.3 Òý½øµÄ¡£ËüºÍ <filename>ftp://</filename> Ïàͬ£¬µ«Êdz¢ÊÔºÍ + <filename>ftps://</filename> ÊÇ <literal>PHP 4.3.0</literal> + Òý½øµÄ¡£ËüºÍ <filename>ftp://</filename> Ïàͬ£¬µ«Êdz¢ÊÔºÍ ftp ·þÎñÆ÷½¨Á¢Ò»¸ö°²È«Á¬½Ó¡£Èç¹û·þÎñÆ÷²»Ö§³Ö SSL£¬Ôò»á·µ»ØÒ»¸öÆÕͨµÄδ¼ÓÃÜµÄ ftp Á¬½Ó¡£ </simpara> <note> <simpara> - ×Ô PHP 4.3 Æð¿ªÊ¼Ö§³Ö FTPS£¬ÐèÒªÔÚ±àÒëʱ¼ÓÈë OpenSSL µÄÖ§³Ö¡£ + ×Ô <literal>PHP 4.3.0</literal> Æð¿ªÊ¼Ö§³Ö + FTPS£¬ÐèÒªÔÚ±àÒëʱ¼ÓÈë OpenSSL µÄÖ§³Ö¡£ </simpara> </note> <para> <table> + <title>Wrapper Summary</title> + <tgroup cols="2"> + <thead> + <row> + <entry>Attribute</entry> + </row> + </thead> + <tbody> + <row> + <entry>Restricted by <literal>allow_url_fopen</literal>.</entry> + <entry>Yes</entry> + </row> + <row> + <entry>Allows Reading</entry> + <entry>Yes</entry> + </row> + <row> + <entry>Allows Writing</entry> + <entry> + Yes (Prior to <literal>PHP 5.0.0</literal>: new files only. + <literal>PHP 5.0.0</literal> and later: overwrite allowed + with context option) + </entry> + </row> + <row> + <entry>Allows Appending</entry> + <entry>Yes (<literal>PHP 5.0.0</literal> or later)</entry> + </row> + <row> + <entry>Allows Simultaneous Reading and Writing</entry> + <entry>No</entry> + </row> + <row> + <entry>Supports <function>stat</function></entry> + <entry>No</entry> + </row> + <row> + <entry>Supports <function>unlink</function></entry> + <entry>Yes (<literal>PHP 5.0.0</literal> or later)</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + <para> + <table> <title>ÉÏÏÂÎÄÑ¡Ï×Ô <literal>PHP 5.0</literal> Æð£©</title> <tgroup cols="3"> <thead> @@ -188,9 +278,9 @@ <title>PHP ÊäÈ룯Êä³öÁ÷</title> <simpara> <literal>PHP 3.0.13</literal> ¼°ÒÔÉϰ汾£¬×Ô - <literal>PHP 4.3</literal> ÆðÖ§³Ö <filename>php://output</filename> + <literal>PHP 4.3.0</literal> ÆðÖ§³Ö <filename>php://output</filename> ºÍ <filename>php://input</filename>£¬×Ô - <literal>PHP 5.0</literal> ÆðÖ§³Ö <filename>php://filter</filename>¡£ + <literal>PHP 5.0.0</literal> ÆðÖ§³Ö <filename>php://filter</filename>¡£ </simpara> <itemizedlist> @@ -283,28 +373,83 @@ through the rot13 filter, then write to example.txt in the current directory */ file_set_contents("php://filter/write=string.rot13/resource=example.txt","Hello World"); -?> -]]> - </programlisting> - </informalexample> - </para> - </listitem> - <listitem> - <simpara> - <literal>/&lt;filter list to apply to both chains&gt;</literal> +?> +]]> + </programlisting> + </informalexample> + </para> + </listitem> + <listitem> + <simpara> + <literal>/&lt;filter list to apply to both chains&gt;</literal> (<emphasis>optional</emphasis>) ÈκÎûÓб» <literal>read=</literal> »ò <literal>write=</literal> Ö¸¶¨µÄ¹ýÂËÆ÷»á±»Í¬Ê±Ó¦ÓÃÓÚ¶ÁдÁ´¡£ - </simpara> - </listitem> - </itemizedlist> - + </simpara> + </listitem> + </itemizedlist> + <para> + <table> + <title> + Wrapper Summary (For <literal>php://filter</literal>, + refer to summary of wrapper being filtered.) + </title> + <tgroup cols="2"> + <thead> + <row> + <entry>Attribute</entry> + </row> + </thead> + <tbody> + <row> + <entry>Restricted by <literal>allow_url_fopen</literal>.</entry> + <entry>No</entry> + </row> + <row> + <entry>Allows Reading</entry> + <entry> + <literal>php://stdin</literal> and + <literal>php://input</literal> only. + </entry> + </row> + <row> + <entry>Allows Writing</entry> + <entry> + <literal>php://stdout</literal>, + <literal>php://stderr</literal>, and + <literal>php://output</literal> only. + </entry> + </row> + <row> + <entry>Allows Appending</entry> + <entry> + <literal>php://stdout</literal>, + <literal>php://stderr</literal>, and + <literal>php://output</literal> only. (Equivalent to writing) + </entry> + </row> + <row> + <entry>Allows Simultaneous Reading and Writing</entry> + <entry>No. These wrappers are unidirectional.</entry> + </row> + <row> + <entry>Supports <function>stat</function></entry> + <entry>No</entry> + </row> + <row> + <entry>Supports <function>unlink</function></entry> + <entry>No</entry> + </row> + </tbody> + </tgroup> + </table> + </para> </section> <section id="wrappers.compression"> <title>ѹËõÁ÷</title> <simpara><filename>zlib:</filename> PHP 4.0.4 - PHP 4.2.3£¨½öÓÃÓÚ´ø fopencookie µÄϵͳ£©</simpara> - <simpara>PHP 4.3 ¼°ÒÔÉϰ汾֧³Ö <filename>compress.zlib://</filename> ºÍ <filename>compress.bzip2://</filename></simpara> + <simpara>PHP 4.3.0 ¼°ÒÔÉϰ汾֧³Ö <filename>compress.zlib://</filename> ºÍ <filename>compress.bzip2://</filename></simpara> <itemizedlist> <listitem><simpara><filename>zlib:</filename></simpara></listitem> @@ -314,7 +459,7 @@ <simpara> <filename>zlib:</filename> ºÍ <function>gzopen</function> µÄ¹¤×÷·½Ê½ÏàÏó£¬Ö»³ýÁËÁ÷¿ÉÒÔÓÃÓÚ - <function>fread</function> ºÍÆäËüÎļþϵͳº¯Êý¡£×Ô PHP 4.3 + <function>fread</function> ºÍÆäËüÎļþϵͳº¯Êý¡£×Ô <literal>PHP 4.3.0</literal> ÆðÒѲ»ÔÞ³ÉʹÓã¬ÒòΪ¿ÉÄÜ»áºÍ°üº¬ÓС°:¡±×Ö·ûµÄÎļþÃû»ìÏý£¬Óà <filename>compress.zlib://</filename> ´úÌæ¡£ </simpara> @@ -323,6 +468,54 @@ <function>gzopen</function> ºÍ <function>bzopen</function>£¬²¢ÇÒ¿ÉÒÔÔÚ²»Ö§³Ö fopencookie µÄϵͳÖÐʹÓᣠ</simpara> + <para> + <table> + <title>Wrapper Summary</title> + <tgroup cols="2"> + <thead> + <row> + <entry>Attribute</entry> + </row> + </thead> + <tbody> + <row> + <entry>Restricted by <literal>allow_url_fopen</literal>.</entry> + <entry>No</entry> + </row> + <row> + <entry>Allows Reading</entry> + <entry>Yes</entry> + </row> + <row> + <entry>Allows Writing</entry> + <entry>Yes</entry> + </row> + <row> + <entry>Allows Appending</entry> + <entry>Yes</entry> + </row> + <row> + <entry>Allows Simultaneous Reading and Writing</entry> + <entry>No</entry> + </row> + <row> + <entry>Supports <function>stat</function></entry> + <entry> + No, use the normal <literal>file://</literal> wrapper + to stat compressed files. + </entry> + </row> + <row> + <entry>Supports <function>unlink</function></entry> + <entry> + No, use the normal <literal>file://</literal> wrapper + to unlink compressed files. + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> </section> </appendix>
« previous php.doc.zh (#1458) next »