View Full Version : Cron jobs with php files?
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?
ProWebUK
12-29-2003, 07:32 PM
Either add:
#!/usr/bin/php
to the top of your php script, or alternatively use this cron command:
/usr/bin/php /path/to/file.php
Chris
hoobastank68
02-28-2004, 09:25 AM
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
l0rdphi1
02-28-2004, 10:37 AM
For every 5 minutes, I use: */5 * * * *
I'm sure there are other ways to do it too. :)
hoobastank68
02-28-2004, 04:36 PM
yea just used get /file
*/5 * * * *
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.