From 9125bb167c89c7fc94bc4f24c4c426ca12cb0aa5 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Wed, 24 Mar 2004 20:39:40 +0000 Subject: [PATCH] Fix example 3. Remove erroneous note. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@154524 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/filesystem/functions/fread.xml | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/reference/filesystem/functions/fread.xml b/reference/filesystem/functions/fread.xml index 8ee27ef910..897a6200b9 100644 --- a/reference/filesystem/functions/fread.xml +++ b/reference/filesystem/functions/fread.xml @@ -1,5 +1,5 @@ - + @@ -62,7 +62,7 @@ fclose($handle); When reading from network streams or pipes, such as those returned when reading remote files or from - popen and proc_open, reading + popen and fsockopen, reading will stop after a packet is available. This means that you should collect the data together in chunks as shown in the example below. @@ -73,27 +73,16 @@ fclose($handle); ]]> - - - The example above has better performance than the traditional approach - using while(!feof), as we are saving the overhead - of a function call per iteration. - - If you just want to get the contents of a file into a string, use