cvs: phpdoc /en/reference/filesystem/functions fgets.xml

From: Date: Wed, 16 Jul 2003 17:12:12 +0000
Subject: cvs: phpdoc /en/reference/filesystem/functions fgets.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969355285@lists.php.net to get a copy of this message
didou Wed Jul 16 13:12:12 2003 EDT Modified files: /phpdoc/en/reference/filesystem/functions fgets.xml Log: adding PHP tags in the examples Index: phpdoc/en/reference/filesystem/functions/fgets.xml diff -u phpdoc/en/reference/filesystem/functions/fgets.xml:1.8 phpdoc/en/reference/filesystem/functions/fgets.xml:1.9 --- phpdoc/en/reference/filesystem/functions/fgets.xml:1.8 Thu Apr 3 20:44:12 2003 +++ phpdoc/en/reference/filesystem/functions/fgets.xml Wed Jul 16 13:12:12 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.fgets"> <refnamediv> @@ -42,12 +42,14 @@ <title>Reading a file line by line</title> <programlisting role="php"> <![CDATA[ +<?php $handle = fopen ("/tmp/inputfile.txt", "r"); while (!feof ($handle)) { $buffer = fgets($handle, 4096); echo $buffer; } fclose ($handle); +?> ]]> </programlisting> </example>

« previous php.doc (#969355285) next »