cvs: phpdoc-zh /reference/filesystem/functions fopen.xml

From: Date: Tue, 16 Aug 2005 04:19:30 +0000
Subject: cvs: phpdoc-zh /reference/filesystem/functions fopen.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-2304@lists.php.net to get a copy of this message
lm92 Tue Aug 16 00:19:30 2005 EDT Modified files: /phpdoc-zh/reference/filesystem/functions fopen.xml Log: updated to en version http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/fopen.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-zh/reference/filesystem/functions/fopen.xml diff -u phpdoc-zh/reference/filesystem/functions/fopen.xml:1.6 phpdoc-zh/reference/filesystem/functions/fopen.xml:1.7 --- phpdoc-zh/reference/filesystem/functions/fopen.xml:1.6 Mon Aug 18 19:23:46 2003 +++ phpdoc-zh/reference/filesystem/functions/fopen.xml Tue Aug 16 00:19:29 2005 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.6 $ --> -<!-- $Author: dallas $ --> -<!-- EN-Revision: 1.18 Maintainer: dallas Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- $Author: lm92 $ --> +<!-- EN-Revision: 1.27 Maintainer: dallas Status: ready --> <!-- CREDITS: lm92 --> <refentry id="function.fopen"> <refnamediv> @@ -14,7 +14,7 @@ <type>resource</type><methodname>fopen</methodname> <methodparam><type>string</type><parameter>filename</parameter></methodparam> <methodparam><type>string</type><parameter>mode</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>use_include_path</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>use_include_path</parameter></methodparam> <methodparam choice="opt"><type>resource</type><parameter>zcontext</parameter></methodparam> </methodsynopsis> <simpara> @@ -53,8 +53,14 @@ Ñ¡Ïî¡£²Î¼ûÏàÓ¦µÄÒ³ÃæÄÄЩѡÏî¿ÉÒÔ±»É趨¡££¨Ò²¾ÍÊÇ &php.ini; µÄÖµ <literal>user_agent</literal> ÓÃÔÚ <literal>http</literal> ЭÒéÖС££©ÓÐ¹Ø - <literal>contexts</literal> ºÍ - <parameter>zcontext</parameter> ²ÎÊýµÄ˵Ã÷£¬²Î¼û <xref linkend="ref.stream"/>¡£ + </simpara> + </note> + &note.context-support; + <note> + <simpara> + ×Ô PHP 4.3.2 + Æð£¬¶ÔËùÓÐÇø±ð¶þ½øÖƺÍÎı¾Ä£Ê½µÄƽ̨ĬÈÏģʽ¶¼±»ÉèΪ¶þ½øÖÆÄ£Ê½¡£Èç¹ûÄãÔÚÉý¼¶ºó½Å±¾Åöµ½ÎÊÌ⣬³¢ÊÔÔÝʱʹÓà + <literal>'t'</literal> ±ê¼Ç£¬Ö±µ½ËùÓеĽű¾¶¼ÕÕÒÔÏÂËù˵µÄ¸ÄΪ¸ü¾ßÒÆÖ²ÐÔÒÔºó¡£ </simpara> </note> <para> @@ -165,24 +171,18 @@ ±ê¼Ç£¬¿ÉÄÜ»áÅöµ½Ò»Ð©Ææ¹ÖµÄÎÊÌ⣬°üÀ¨»µµôµÄͼƬÎļþÒÔ¼°¹ØÓÚ <literal>\r\n</literal> ×Ö·ûµÄÆæ¹ÖÎÊÌâ¡£ </para> + </note> + <note> <para> - <emphasis> ÎªÒÆÖ²ÐÔ¿¼ÂÇ£¬Ç¿ÁÒ½¨ÒéÔÚÓà <function>fopen</function> ´ò¿ªÎļþʱ×ÜÊÇʹÓà <literal>'b'</literal> ±ê¼Ç¡£ - </emphasis> </para> + </note> + <note> <para> - <emphasis> ÔÙÒ»´Î£¬ÎªÒÆÖ²ÐÔ¿¼ÂÇ£¬Ç¿ÁÒ½¨ÒéÄãÖØÐ´ÄÇЩÒÀÀµÓÚ <literal>'t'</literal> ģʽµÄ´úÂëʹÆäʹÓÃÕýÈ·µÄÐнáÊø·û²¢¸Ä³É <literal>'b'</literal> ģʽ¡£ - </emphasis> - </para> - <para> - <emphasis> - ×Ô PHP 4.3.2 Æð£¬¶ÔËùÓÐÇø±ð¶þ½øÖƺÍÎı¾Ä£Ê½µÄƽ̨ĬÈÏģʽ¶¼±»ÉèΪ¶þ½øÖÆÄ£Ê½¡£Èç¹ûÄãÔÚÉý¼¶ºó½Å±¾Åöµ½ÎÊÌ⣬³¢ÊÔÔÝʱʹÓà - <literal>'t'</literal> ±ê¼Ç£¬Ö±µ½ËùÓеĽű¾¶¼ÕÕÒÔÉÏËù˵µÄ¸ÄΪ¸ü¾ßÒÆÖ²ÐÔÒÔºó¡£ - </emphasis> </para> </note> <para> @@ -201,10 +201,10 @@ <programlisting role="php"> <![CDATA[ <?php -$handle = fopen ("/home/rasmus/file.txt", "r"); -$handle = fopen ("/home/rasmus/file.gif", "wb"); -$handle = fopen ("http://www.example.com/", "r"); -$handle = fopen ("ftp://user:password@example.com/somefile.txt", "w"); +$handle = fopen("/home/rasmus/file.txt", "r"); +$handle = fopen("/home/rasmus/file.gif", "wb"); +$handle = fopen("http://www.example.com/", "r"); +$handle = fopen("ftp://user:password@example.com/somefile.txt", "w"); ?> ]]> </programlisting> @@ -220,12 +220,14 @@ <programlisting role="php"> <![CDATA[ <?php -$handle = fopen ("c:\\data\\info.txt", "r"); +$handle = fopen("c:\\data\\info.txt", "r"); ?> ]]> </programlisting> </informalexample> </para> + &warn.ssl-non-standard; + &note.sm.uidcheck.dir; <simpara> ²Î¼û<xref linkend="wrappers"/>£¬<function>fclose</function>£¬<function>fgets</function>£¬<function>fread</function>£¬<function>fwrite</function>£¬<function>fsockopen</function>£¬<function>file</function>£¬<function>file_exists</function>£¬<function>is_readable</function>£¬<function>stream_set_timeout</function> ºÍ <function>popen</function>¡£

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