cvs: phpdoc-pl /reference/filesystem/functions fgets.xml

From: Date: Sun, 18 Sep 2005 00:16:27 +0000
Subject: cvs: phpdoc-pl /reference/filesystem/functions fgets.xml
Groups: php.doc.pl 
Request: Send a blank email to doc-pl+get-666@lists.php.net to get a copy of this message
leszek Sat Sep 17 20:16:27 2005 EDT Modified files: /phpdoc-pl/reference/filesystem/functions fgets.xml Log: [adi] update to rev. 1.15 http://cvs.php.net/diff.php/phpdoc-pl/reference/filesystem/functions/fgets.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-pl/reference/filesystem/functions/fgets.xml diff -u phpdoc-pl/reference/filesystem/functions/fgets.xml:1.5 phpdoc-pl/reference/filesystem/functions/fgets.xml:1.6 --- phpdoc-pl/reference/filesystem/functions/fgets.xml:1.5 Sat Feb 26 20:09:18 2005 +++ phpdoc-pl/reference/filesystem/functions/fgets.xml Sat Sep 17 20:16:24 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.13 Maintainer: adi Status: ready --> -<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.15 Maintainer: adi Status: ready --> +<!-- $Revision: 1.6 $ --> <refentry id="function.fgets"> <refnamediv> <refname>fgets</refname> @@ -39,12 +39,14 @@ <programlisting role="php"> <![CDATA[ <?php -$uchwyt = fopen ("/tmp/inputfile.txt", "r"); -while (!feof ($uchwyt)) { +$uchwyt = @fopen ("/tmp/inputfile.txt", "r"); +if ($uchwyt) { +while (!feof($uchwyt)) { $buffer = fgets($uchwyt, 4096); echo $buffer; -} + } fclose ($uchwyt); +} ?> ]]> </programlisting> @@ -68,7 +70,8 @@ </note> &note.line-endings; <para> - Patrz tak¿e: <function>fread</function>, + Patrz tak¿e: <function>fgetss</function>, + <function>fread</function>, <function>fgetc</function>, <function>stream_get_line</function>, <function>fopen</function>,

« previous php.doc.pl (#666) next »