From e85f3ac16bb8e9cdcc1b994b1f0535a0cb09c3cc Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Thu, 14 Aug 2008 10:14:43 +0000 Subject: [PATCH] Fixes #43728 (An addition to fread) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@264831 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/filesystem/functions/fread.xml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/reference/filesystem/functions/fread.xml b/reference/filesystem/functions/fread.xml index 3c703b809e..cf80719929 100644 --- a/reference/filesystem/functions/fread.xml +++ b/reference/filesystem/functions/fread.xml @@ -1,5 +1,5 @@ - + fread @@ -160,6 +160,14 @@ fclose($handle); than the code above. + + + Note that fread reads from the current position of + the file pointer. Use ftell to find the current + position of the pointer and rewind to rewind the + pointer position. + + @@ -175,6 +183,8 @@ fclose($handle); fscanf file fpassthru + ftell + rewind