Add clearstatcache();
dejurin opened this issue · comments
When I develop an application, I often reload the script data, but the "filesize" function in "linux" has a cache. Subsequently, files are not generated until the end.
Add before
clearstatcache();
$contents = fread($handle, filesize($out_file));
Nice catch. We will switch to file_get_contents
since it's a recommended way to handle loading file source to variable.
Thanks.
Thank U