<?php $date = date('Y-m-d H-i-s', time()); $log_name = dirname(FILE)."/cronjob". $date;if($fh = fopen($log_name,'w')){ fwrite($fh, print_r($date)); fclose($fh);}?>
*/10 * * * * cd /home/myname/mywebsite; /usr/bin/php logscript.php Cron > /dev/null 2>&1