Daney11 Posted January 23, 2007 Share Posted January 23, 2007 Hi Guys,Im just wondering wether or not it is possible for a PHP file to run automatically.Say i wanted a certian file to be ran every hour at a certian time of that hour. Is this possible?ThanksDane Link to comment https://forums.phpfreaks.com/topic/35388-automatic-run-of-a-file/ Share on other sites More sharing options...
michaellunsford Posted January 23, 2007 Share Posted January 23, 2007 it's called "cron" and it will run as often as you'd like it to (once a minute to once a year and most anything in-between). You can google search for cron, or ask you hosting provider how to set it up. Link to comment https://forums.phpfreaks.com/topic/35388-automatic-run-of-a-file/#findComment-167310 Share on other sites More sharing options...
Daney11 Posted January 23, 2007 Author Share Posted January 23, 2007 Thanks a lot mate. Ive found out about it on google and how to set it up. And also it only runs on Linux so i'll be buying Linux hosting.Thanks again. Link to comment https://forums.phpfreaks.com/topic/35388-automatic-run-of-a-file/#findComment-167315 Share on other sites More sharing options...
Jessica Posted January 23, 2007 Share Posted January 23, 2007 Windows has scheduled tasks, but go for Linux anyway :) Link to comment https://forums.phpfreaks.com/topic/35388-automatic-run-of-a-file/#findComment-167358 Share on other sites More sharing options...
Daney11 Posted January 23, 2007 Author Share Posted January 23, 2007 Oh, i didnt know that, Could you explain how or post a link on how to create this?Thanks a lotDane Link to comment https://forums.phpfreaks.com/topic/35388-automatic-run-of-a-file/#findComment-167361 Share on other sites More sharing options...
marcus Posted January 23, 2007 Share Posted January 23, 2007 For linux, you could just go (if you're using cpanel) go into your cpanel and hit Cron Jobs, and hit Standard, and it's pretty self-explanatory from there. Link to comment https://forums.phpfreaks.com/topic/35388-automatic-run-of-a-file/#findComment-167371 Share on other sites More sharing options...
Daney11 Posted January 23, 2007 Author Share Posted January 23, 2007 Ok mate, thanks a lot. I will try it and see if i can get it working :)Again, thanks. Link to comment https://forums.phpfreaks.com/topic/35388-automatic-run-of-a-file/#findComment-167374 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.