if($ran != 0): $CTcontent = "<?php\ \\r\ \\r"; $CTcontent .= '// Set $lastrun = "never" to stop fakecon from running completely'."\ \\r\ \\r"; $CTcontent .='$lastrun = "'.date("Y-m-d")."\\";\ \\r\ \\r?>"; if (is_writable($crontab)): $handle = fopen($crontab, "w"); if (fwrite($handle, $CTcontent) === FALSE): // echo only while testing //echo 'Fake Cron error! Could not write to '.$crontab.".\ "; //exit; endif; fclose($handle); endif; endif; endif; endif; endif;
$CTcontent .='$lastrun = "'.date("Y-m-d")."\\";\ \\r\
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)