Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- How to create a PHP cron job


harbs - 3:43 pm on Aug 8, 2012 (gmt 0)


If you're running multiple php scripts, make a file e.g. runphp.sh with the code

#!/bin/sh
php /pathToScript/script.php
php /pathToScript/another-script.php

...then go to crontab & create cron job:

30 18 * * * sh /path/to/runphp.sh


If just one script, you can run it directly as such:

30 18 * * * php /path/to/script.php


Thread source:: http://www.webmasterworld.com/php/4482541.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com