Running PHP scripts from cron jobs A common method for running PHP scripts from a cron job is to use a command-line program such as curl or wget. For example, the cron job runs a command similar to the following command: curl http://example.com/script.php