note 106209 added to function.fwrite
| From: | pubdconyahoo at osu1 dot php dot net | Date: | Wed, 19 Oct 2011 06:48:29 +0000 |
| Subject: | note 106209 added to function.fwrite | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-183982@lists.php.net to get a copy of this message | ||
I have encountered many instances where fwrite will fail to append all text to the file, especially
when there is a sequence of fwrite appends.
Sometimes it will work fine, sometimes the file will be only half-written. Adding a usleep(100000)
for a tenth-of-a-second pause between the fwrites will usually avoid such issues without imposing
too much of a delay.
----
Server IP: 69.147.83.197
Probable Submitter: 84.255.144.4
----
Manual Page -- http://www.php.net/manual/en/function.fwrite.php
Edit -- https://master.php.net/note/edit/106209
Del: integrated -- https://master.php.net/note/delete/106209/integrated
Del: useless -- https://master.php.net/note/delete/106209/useless
Del: bad code -- https://master.php.net/note/delete/106209/bad+code
Del: spam -- https://master.php.net/note/delete/106209/spam
Del: non-english -- https://master.php.net/note/delete/106209/non-english
Del: in docs -- https://master.php.net/note/delete/106209/in+docs
Del: other reasons-- https://master.php.net/note/delete/106209
Reject -- https://master.php.net/note/reject/106209
Search -- https://master.php.net/manage/user-notes.php