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>
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php