fread + fwrite in php
I kept getting a zero for file_exists($fName)
I think this is not the first time it happened, but here's the solution (provided the file does exist)
$handle = fopen($filename, "rb");
sleep(1);
fread($handle, filesize($filename));
basically seems like adding a sleep(1); allows it to load the file.
0 Comments
Posted on 2009 Aug 31 by
Daniel