cvs: phpdoc-zh /reference/filesystem/functions fgets.xml
| From: | liuming | Date: | Tue, 16 Aug 2005 05:50:31 +0000 |
| Subject: | cvs: phpdoc-zh /reference/filesystem/functions fgets.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-2321@lists.php.net to get a copy of this message | ||
lm92 Tue Aug 16 01:50:31 2005 EDT
Modified files:
/phpdoc-zh/reference/filesystem/functions fgets.xml
Log:
updated to en version
http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/fgets.xml?r1=1.6&r2=1.7&ty=u
Index: phpdoc-zh/reference/filesystem/functions/fgets.xml
diff -u phpdoc-zh/reference/filesystem/functions/fgets.xml:1.6
phpdoc-zh/reference/filesystem/functions/fgets.xml:1.7
--- phpdoc-zh/reference/filesystem/functions/fgets.xml:1.6 Mon Aug 18 16:51:02 2003
+++ phpdoc-zh/reference/filesystem/functions/fgets.xml Tue Aug 16 01:50:27 2005
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="gb2312"?>
-<!-- $Revision: 1.6 $ -->
-<!-- $Author: dallas $ -->
-<!-- EN-Revision: 1.9 Maintainer: dallas Status: ready -->
+<!-- $Revision: 1.7 $ -->
+<!-- $Author: lm92 $ -->
+<!-- EN-Revision: 1.13 Maintainer: dallas Status: ready -->
<refentry id="function.fgets">
<refnamediv>
<refname>fgets</refname>
@@ -15,9 +15,11 @@
<methodparam
choice="opt"><type>int</type><parameter>length</parameter></methodparam>
</methodsynopsis>
<para>
- ´Ó <parameter>handle</parameter>
Ö¸ÏòµÄÎļþÖжÁȡһÐв¢·µ»Ø³¤¶È×î¶àΪ length - 1
+ ´Ó <parameter>handle</parameter>
+ Ö¸ÏòµÄÎļþÖжÁȡһÐв¢·µ»Ø³¤¶È×î¶àΪ
<parameter>length</parameter> - 1
×Ö½ÚµÄ×Ö·û´®¡£Åöµ½»»Ðзû£¨°üÀ¨ÔÚ·µ»ØÖµÖУ©¡¢EOF
»òÕßÒѾ¶ÁÈ¡ÁË length - 1
- ×Ö½ÚºóÍ£Ö¹£¨¿´ÏÈÅöµ½ÄÇÒ»ÖÖÇé¿ö£©¡£Èç¹ûûÓÐÖ¸¶¨
length£¬ÔòĬÈÏΪ 1K£¬»òÕß˵ 1024 ×Ö½Ú¡£
+ ×Ö½ÚºóÍ£Ö¹£¨¿´ÏÈÅöµ½ÄÇÒ»ÖÖÇé¿ö£©¡£Èç¹ûûÓÐÖ¸¶¨
+ <parameter>length</parameter>£¬ÔòĬÈÏΪ 1K£¬»òÕß˵ 1024
×Ö½Ú¡£
</para>
<para>
³ö´íʱ·µ»Ø &false;¡£
@@ -29,11 +31,7 @@
ϰ¹ßÁË C ÓïÑÔÖÐ <function>fgets</function>
Óï·¨µÄÈËÓ¦¸Ã×¢Òâµ½ <literal>EOF</literal>
ÊÇÔõÑù±»·µ»ØµÄ¡£
</simpara>
- <simpara>
- ÎļþÖ¸Õë±ØÐëÓÐЧ£¬²¢ÇÒÊÇͨ¹ý
- <function>fopen</function> »ò
- <function>fsockopen</function> ³É¹¦´ò¿ªµÄ¡£
- </simpara>
+ &fs.validfp.all;
<para>
ÒÔÏÂÊÇÒ»¸ö¼òµ¥Àý×Ó£º
<example>
@@ -41,12 +39,12 @@
<programlisting role="php">
<![CDATA[
<?php
-$handle = fopen ("/tmp/inputfile.txt", "r");
-while (!feof ($handle)) {
+$handle = fopen("/tmp/inputfile.txt", "r");
+while (!feof($handle)) {
$buffer = fgets($fd, 4096);
echo $buffer;
}
-fclose ($handle);
+fclose($handle);
?>
]]>
</programlisting>
@@ -68,7 +66,7 @@
¬e.line-endings;
<para>
²Î¼û
<function>fread</function>£¬<function>fgetc</function>£¬<function>stream_get_line</function>£¬<function>fopen</function>£¬<function>popen</function>£¬<function>fsockopen</function>
- ºÍ <function>socket_set_timeout</function>¡£
+ ºÍ <function>stream_set_timeout</function>¡£
</para>
</refsect1>
</refentry>