Tony Loosle wrote:
> I need to add a php script to the cron job.
>
> When I enter crontab -e to edit it, I get a list of ~
>
> How do I add a cron job?
>
> tony
>
>
Tony, this is quite easy to do, first you need to make a file in the cron.d
vi /etc/cron.d/whatever.cron
now add ( I have this running every ten minutes )
*/10 * * * * apache /path/to/your/php/script.php > /dev/null 2>&1
Restart service
/etc/rc.d/init.d/crond restart
Now add to your script at the top
#!/usr/bin/php -q
Best Regards, Jon McCauley