cvs: phpdoc-zh /reference/filesystem/functions fpassthru.xml
| From: | liuming | Date: | Tue, 04 Feb 2003 13:32:33 +0000 |
| Subject: | cvs: phpdoc-zh /reference/filesystem/functions fpassthru.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-1010@lists.php.net to get a copy of this message | ||
lm92 Tue Feb 4 08:32:33 2003 EDT
Modified files:
/phpdoc-zh/reference/filesystem/functions fpassthru.xml
Log:
finished
Index: phpdoc-zh/reference/filesystem/functions/fpassthru.xml
diff -u phpdoc-zh/reference/filesystem/functions/fpassthru.xml:1.1
phpdoc-zh/reference/filesystem/functions/fpassthru.xml:1.2
--- phpdoc-zh/reference/filesystem/functions/fpassthru.xml:1.1 Sun Sep 29 22:56:19 2002
+++ phpdoc-zh/reference/filesystem/functions/fpassthru.xml Tue Feb 4 08:32:32 2003
@@ -1,33 +1,33 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
<refentry id="function.fpassthru">
<refnamediv>
- <refname>fpassthru</refname>
- <refpurpose>Output all remaining data on a file pointer</refpurpose>
+ <refname>fpassthru</refname>
+
<refpurpose>°ÑÎļþÖ¸Õë´¦µÄÊ£ÓàµÄÊý¾ÝÈ«²¿Êä³ö</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>ÃèÊö</title>
<methodsynopsis>
<type>int</type><methodname>fpassthru</methodname>
-
<methodparam><type>int</type><parameter>fp</parameter></methodparam>
+
<methodparam><type>resource</type><parameter>handle</parameter></methodparam>
</methodsynopsis>
<simpara>
- Reads to EOF on the given file pointer from the current position and
- writes the results to the output buffer.
+ °´ÎļþÖ¸Õë´Óµ±Ç°µÄλÖöÁÈ¡µ½EOF£¨End of
file£©²¢°Ñ½á¹ûдµ½Êä³ö»º³åÆ÷¡£
</simpara>
<simpara>
- If an error occurs, <function>fpassthru</function> returns
- &false;.
+ Èç¹û·¢Éú´íÎó£¬ <function>fpassthru</function> ¾Í»á·µ»Ø
&false;¡£
+ ·ñÔò£¬ <function>fpassthru</function> ¾Í·µ»Ø´Ó
<parameter>handle</parameter>
+ ×Ö·ûÊýÄ¿ÒÔ¼°´«µÝµ½±ê×¼Êä³ö¡£
</simpara>
<simpara>
- The file pointer must be valid, and must point to a file successfully
- opened by <function>fopen</function>, <function>popen</function>, or
- <function>fsockopen</function>. You may need to call
- <function>rewind</function> to reset the file pointer to the beginning of
- the file if you have already written data to the file. The file is
- closed when <function>fpassthru</function> is done reading it (leaving
- <parameter>fp</parameter> useless).
+ ÎļþÖ¸Õë±ØÐëÓÐЧ£¬ÇÒ±ØÐë³É¹¦´ò¿ªÓÉ
+ <function>fopen</function>£¬ <function>popen</function>£¬»ò
+ <function>fsockopen</function> Ö¸¶¨µÄÎļþ¡£
+ Èç¹ûÄãÒѾÏòÎļþ¼ÐдÈëÁËÊý¾Ý£¬Äã±ØÐëʹÓÃ
<function>rewind</function>
+ À´ÖØÉèÎļþÖ¸Õëµ½ÎļþµÄ¿ªÍ·¡£
+ µ± <function>fpassthru</function>
¶ÁÍêÎļþºó£¬¾Í»á¹Ø±ÕÖ¸Õë¹Ø±Õ
+ <parameter>handle</parameter> £©¡£
</simpara>
<simpara>
If you just want to dump the contents of a file to the output buffer,