Simple:Cron Jobs

Cron Jobs are a fancy way of saying that the jobs listed here are a special job that runs every so often, on a schedule! The commands that run here are all Shell commands, so you will need to be familiar with that first!

= FAQ =

How do I run a PHP script?
In order to run a PHP script in a Cron job, you'd need to write a shell command for the job. For example, if your script is located at:

/home/username/domain.com/path/to/script.php

Then your command would be:

cd /home/username/domain.com/path/to/ && /usr/local/php5/bin/php script.php

NB: You cannot use GET arguments using this technique. For that, you must do it via wget. See below.

How Do I Call a Script on my Web Page
/usr/bin/wget -q --delete-after  http://domain.com/path/to/script.php 

While this technique works just fine, unless otherwise needing to run it this way, it is recommend that you use the the "How do I run a PHP script?" technique above, due to some technical non-sense.

PHP Errors Out! Something about could not find a file for include -- whatever that is!
If you're seeing this error, odds are that you're running your job from the command line, and don't have a "cd" command before it. Try running your PHP script using the technique listed in the "How do I run a PHP script?" section of this article.