note 95398 added to function.fclose
| From: | pjm at pehjota dot com | Date: | Thu, 31 Dec 2009 05:52:41 +0000 |
| Subject: | note 95398 added to function.fclose | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-164491@lists.php.net to get a copy of this message | ||
In response to what sineld at sineld dot com wrote, you don't have to close the file to be able
to read what you've written. You can call fflush() to flush the output buffer to the disk,
fseek() to where you need to be, and fread() anything you wrote. Just make sure the mode you use
with fopen() allows for anything you need to do with the file stream.
----
Server IP: 192.41.40.227
Probable Submitter: 70.47.131.176
----
Manual Page -- http://www.php.net/manual/en/function.fclose.php
Edit -- https://master.php.net/note/edit/95398
Del: integrated -- https://master.php.net/note/delete/95398/integrated
Del: useless -- https://master.php.net/note/delete/95398/useless
Del: bad code -- https://master.php.net/note/delete/95398/bad+code
Del: spam -- https://master.php.net/note/delete/95398/spam
Del: non-english -- https://master.php.net/note/delete/95398/non-english
Del: in docs -- https://master.php.net/note/delete/95398/in+docs
Del: other reasons-- https://master.php.net/note/delete/95398
Reject -- https://master.php.net/note/reject/95398
Search -- https://master.php.net/manage/user-notes.php