A cron command like:
Code:
/usr/bin/php /home/igor/public_html/my_cron_script.php >>/home/igor/public_html/my_cron_log.txt 2>&1
will log system error messages and any output ( print or echo commands).
Adding lines like
PHP:
date_default_timezone_set('America/Los_Angeles');
echo "\nCron job run on: " ;
echo date('l jS \of F Y h:i:s A');
echo "\n";
will give you a time stamp in the log file.
The email notification system on the cPanel screen for cron jobs has been turned off (it would flood the email server).
Note: PHP mail() under cron does not work, period. The above logging should show you the error message.
And remember, you cron jobs must be 5 minutes apart. Otherwise the system will quietly delete them.