
Originally Posted by
pietje63
Yes, I'm logging (via php fwrite) to a file. When I run the file from the browser I see it is working/logging.
No. If there is an error running your script via cron your logging will not do anything.
Use a command line like
Code:
/usr/bin/php /home/igor/public_html/cron_job.php >>/home/igor/public_html/cron_log.txt 2>&1
where "igor" is your cPanel username.
This will log any "echo" command output along with any failures (file not found, etc).
Not sure if your second script is set to run when you want.