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

From: Date: Tue, 16 Aug 2005 04:47:18 +0000
Subject: cvs: phpdoc-zh /reference/filesystem/functions file.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-2315@lists.php.net to get a copy of this message
lm92 Tue Aug 16 00:47:18 2005 EDT Modified files: /phpdoc-zh/reference/filesystem/functions file.xml Log: updated to en version http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/file.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-zh/reference/filesystem/functions/file.xml diff -u phpdoc-zh/reference/filesystem/functions/file.xml:1.6 phpdoc-zh/reference/filesystem/functions/file.xml:1.7 --- phpdoc-zh/reference/filesystem/functions/file.xml:1.6 Mon Aug 18 16:51:02 2003 +++ phpdoc-zh/reference/filesystem/functions/file.xml Tue Aug 16 00:47:18 2005 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.6 $ --> -<!-- $Author: dallas $ --> -<!-- EN-Revision: 1.10 Maintainer: dallas Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- $Author: lm92 $ --> +<!-- EN-Revision: 1.16 Maintainer: dallas Status: ready --> <refentry id="function.file"> <refnamediv> <refname>file</refname> @@ -30,13 +30,13 @@ <![CDATA[ <?php // ½«Ò»¸öÎļþ¶ÁÈëÊý×é¡£±¾ÀýÖÐͨ¹ý HTTP ´Ó URL ÖÐÈ¡µÃ HTML Ô´Îļþ¡£ -$lines = file ('http://www.example.com/'); -// ÔÚÊý×éÖÐÑ­»·£¬ÏÔʾ html µÄÔ´Îļþ²¢¼ÓÉÏÐкš£ +$lines = file('http://www.example.com/'); +// ÔÚÊý×éÖÐÑ­»·£¬ÏÔʾ HTML µÄÔ´Îļþ²¢¼ÓÉÏÐкš£ foreach ($lines as $line_num => $line) { - echo "Line #<b>{$line_num}</b> : " . htmlspecialchars($line) . "<br>\n"; + echo "Line #<b>{$line_num}</b> : " . htmlspecialchars($line) . "<br />\n"; } // ÁíÒ»¸öÀý×Ó½« web Ò³Ãæ¶ÁÈë×Ö·û´®¡£²Î¼û file_get_contents()¡£ -$html = implode ('', file ('http://www.example.com/')); +$html = implode('', file ('http://www.example.com/')); ?> ]]> </programlisting> @@ -45,7 +45,7 @@ <note> <para> ·µ»ØµÄÊý×éÖÐÿһÐж¼°üÀ¨ÁËÐнáÊø·û£¬Òò´ËÈç¹û²»ÐèÒªÐнáÊø·ûʱ»¹ÐèҪʹÓà - <function>trim</function> º¯Êý¡£ + <function>rtrim</function> º¯Êý¡£ </para> </note> &note.line-endings; @@ -59,11 +59,8 @@ ´Ó PHP 4.3.0 ¿ªÊ¼ <function>file</function> ¿ÉÒÔ°²È«ÓÃÓÚ¶þ½øÖÆÎļþ¡£ </para> </note> - <note> - <simpara> - Context Ö§³ÖÊÇ <literal>PHP 5.0.0</literal> мӵġ£ - </simpara> - </note> + &note.context-support; + &warn.ssl-non-standard; <para> ²Î¼û <function>readfile</function>£¬<function>fopen</function>£¬<function>fsockopen</function>£¬<function>popen</function>£¬<function>file_get_contents</function> ºÍ <function>include</function>¡£

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