eyehawk78 Posted June 27, 2007 Share Posted June 27, 2007 Hi I was wondering if there was anyway of running a external php script every 30 seconds pretty much infinitely. I f possible without having to leave my computer on 24/7. Any idea how I could do this? Thanks Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted June 27, 2007 Share Posted June 27, 2007 You need to set up a cron job. Usually your host will supply this feature in the control panel, so I would check there. running a external php script What do you mean when you say "external"? Are you saying the script is not on your server? Quote Link to comment Share on other sites More sharing options...
eyehawk78 Posted June 27, 2007 Author Share Posted June 27, 2007 No sorry I mean separate file on the same server. What's a 'cron job'? Sorry i'm a php newb Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted June 27, 2007 Share Posted June 27, 2007 "The crontab command, found in Unix and Unix-like operating systems, is used to schedule commands to be executed periodically. It reads a series of commands from standard input and collects them into a file known also known as a "crontab" which is later read and whose instructions are carried out." Basically a cron job will run a script every X amount of time, X being the interval of time that you set. You can usually set them up from the control panel of your hosting account. I personally have not had a host that doesn't offer crons, but I am sure there are some...so your going to have to check. Here is some more information: http://www.unixgeeks.org/security/newbie/unix/cron-1.html http://info.connect.com.au/docs/hosting/vws/advanced/cron.html http://en.wikipedia.org/wiki/Cron Quote Link to comment Share on other sites More sharing options...
eyehawk78 Posted June 27, 2007 Author Share Posted June 27, 2007 Thanks pocobueno, I'll ask my the head admin on the server if we have that option. Cheers Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted June 27, 2007 Share Posted June 27, 2007 Yeah, that would be the best way to go about it. Don't forget to mark the topic as "solved". Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.