cheechm Posted September 15, 2007 Share Posted September 15, 2007 Hello, I have a script which I need to run automatically.. Literally what it does is add data from one database into the other. Literally between a forum and a e-commerce script. So when they sign up which the forum they are also signed up at the e-commerce site. How would I make it so the script ran automatically every 15 minutes. Quote Link to comment https://forums.phpfreaks.com/topic/69466-solved-running-a-script-automatically/ Share on other sites More sharing options...
Wuhtzu Posted September 15, 2007 Share Posted September 15, 2007 The short answer is with some scheduling service... Put it as a job in the Task Manager in Windows or as a CronJob in linux. Do a google search for cronjob, it's pretty straight forward if you have the access to such features at your webhost. Alternatively you could write your "also sign up for e-commerce"-code in your "forum signup code" so each time the forum signup script is run you also run the e-commerce signup script with the same details... Quote Link to comment https://forums.phpfreaks.com/topic/69466-solved-running-a-script-automatically/#findComment-349035 Share on other sites More sharing options...
darkfreaks Posted September 15, 2007 Share Posted September 15, 2007 example cronjob: 15 *"file to run" updated every 15 min Quote Link to comment https://forums.phpfreaks.com/topic/69466-solved-running-a-script-automatically/#findComment-349044 Share on other sites More sharing options...
cheechm Posted September 15, 2007 Author Share Posted September 15, 2007 Thanks guys Quote Link to comment https://forums.phpfreaks.com/topic/69466-solved-running-a-script-automatically/#findComment-349052 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.