Hi i have a issue with my script.
I'm writing file contents using below code..and saving a file in my directory which users can access
$File = fopen('help/gossipcom.html','w');
fwrite($File, $header1 . $title2 . $footer1);
fclose($File);
This is working perfectly..
But i'm running this using cron job
if a user access the file at the same time when the cron job runs, it will show a blank page..How can i avoid this issue?.
Thank you!