Cron jobs with php files?

GGT

New member
Joined
Dec 29, 2003
Messages
1
Location
Montreal, Quebec
My webhost provided Direct Admin ... but I can't seem to be able to set up a cron job to execute a php file

any help?
 
Either add:

Code:
#!/usr/bin/php

to the top of your php script, or alternatively use this cron command:

Code:
/usr/bin/php /path/to/file.php

Chris
 
Hi,

I'm trying to get netstatus to work with cron job
So just do

/usr/bin/php /home/user/netstatus/cronjob/cron.php
and for time change * to 5 for minutes and leave all others *

Or anything im doing wrong?

Thanks
 
For every 5 minutes, I use: */5 * * * *

I'm sure there are other ways to do it too. :)
 
Back
Top