G GGT New member Joined Dec 29, 2003 Messages 1 Location Montreal, Quebec Dec 29, 2003 #1 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?
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 Verified User Joined Jun 9, 2003 Messages 1,963 Location UK Dec 29, 2003 #2 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
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
H hoobastank68 Verified User Joined Feb 25, 2004 Messages 35 Feb 28, 2004 #3 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
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
L l0rdphi1 Verified User Joined Jun 22, 2003 Messages 1,315 Feb 28, 2004 #4 For every 5 minutes, I use: */5 * * * * I'm sure there are other ways to do it too.
H hoobastank68 Verified User Joined Feb 25, 2004 Messages 35 Feb 28, 2004 #5 yea just used get /file */5 * * * *