codehaven - php snippets - coding help
Generic filters
Exact matches only

Scheduled tasks – Cron jobs

29th November 2013



Some important rules when using scheduled tasks.

  1. Always use full urls throughout. No (../myfile.php), it must be (D:Plesk/vhosts/mywebsite/httpdocs/myfolder/myfile.php)
  2. Add error reporting(0); to the top of the script.

Was this code snippet helpful?