note 47360 added to function.fflush
| From: | draco at lomag dot net | Date: | Fri, 12 Nov 2004 21:50:11 +0000 |
| Subject: | note 47360 added to function.fflush | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-80455@lists.php.net to get a copy of this message | ||
If you are write to a file, fflush() it and then hope to re-read in the data, you probably need to
use http://www.php.net/manual/en/function.clearstatcache.php
Because of PHP's caching, it caches the original file when the script is first executed, so if
you reread the file you wrote to, it will look like it was when it first executed. It wont contain
any of the information you wrote to it.
----
Manual Page -- http://www.php.net/manual/en/function.fflush.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+47360
Delete -- http://master.php.net/manage/user-notes.php?action=delete+47360&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47360&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47360&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47360&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47360&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47360&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+47360&report=yes
Search -- http://master.php.net/manage/user-notes.php