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.
Posted on 2009 Aug 31 by Daniel

(optional)

smile wink wassat tongue laughing sad angry crying 


Enter the code shown in the image:


| Forget Me
Content Management Powered by CuteNews