Ge64 Posted February 27, 2006 Share Posted February 27, 2006 For my website I need to update a few numbers in the mysql database exactly every hour, so I will need to run a php script then. Is there a way to make a PHP script do something at a particular moment? Quote Link to comment https://forums.phpfreaks.com/topic/3684-running-scripts-automatically/ Share on other sites More sharing options...
craygo Posted February 27, 2006 Share Posted February 27, 2006 if your web server uses cron jobs, you can run a script every hour with that. Do a search on cron jobs here and you should find it no problem.Ray Quote Link to comment https://forums.phpfreaks.com/topic/3684-running-scripts-automatically/#findComment-12765 Share on other sites More sharing options...
Ge64 Posted February 27, 2006 Author Share Posted February 27, 2006 [!--quoteo(post=349884:date=Feb 27 2006, 05:56 PM:name=craygo)--][div class=\'quotetop\']QUOTE(craygo @ Feb 27 2006, 05:56 PM) [snapback]349884[/snapback][/div][div class=\'quotemain\'][!--quotec--]if your web server uses cron jobs, you can run a script every hour with that. Do a search on cron jobs here and you should find it no problem.Ray[/quote]No it doesnt, but is there software to run php scripts at certain times so I can put it on one of my 24/7 pc's and run it remotely? Quote Link to comment https://forums.phpfreaks.com/topic/3684-running-scripts-automatically/#findComment-12778 Share on other sites More sharing options...
litebearer Posted February 27, 2006 Share Posted February 27, 2006 you could use windows task scheduler to run your browser at the appointed times. and have the browser point to a php script that does what you want done.clear as mud?Lite... Quote Link to comment https://forums.phpfreaks.com/topic/3684-running-scripts-automatically/#findComment-12782 Share on other sites More sharing options...
joecooper Posted February 27, 2006 Share Posted February 27, 2006 let me know if your still looking for one, i could whip up a visual basic program for you to run it Quote Link to comment https://forums.phpfreaks.com/topic/3684-running-scripts-automatically/#findComment-12786 Share on other sites More sharing options...
Ge64 Posted February 27, 2006 Author Share Posted February 27, 2006 [!--quoteo(post=349910:date=Feb 27 2006, 07:23 PM:name=joecooper)--][div class=\'quotetop\']QUOTE(joecooper @ Feb 27 2006, 07:23 PM) [snapback]349910[/snapback][/div][div class=\'quotemain\'][!--quotec--]let me know if your still looking for one, i could whip up a visual basic program for you to run it[/quote]Do you have code to run sql queries on remote mysql servers? Because that would be even better but probably a lot of work. What I need is a few scripts that need to run at all sorts of times, like every day or every hour, or totally random. You would only need to use an Inet control because I have the files on a HTTP server with PHP so you only have to run them then, don't think thats really hard to do right? I would actually do it myself but I lost my VS cd :( Let me know if you feel like doing that... Quote Link to comment https://forums.phpfreaks.com/topic/3684-running-scripts-automatically/#findComment-12790 Share on other sites More sharing options...
joecooper Posted February 27, 2006 Share Posted February 27, 2006 tell me the files you want to run, and at what times, and ill add it to the cron jobs on my server Quote Link to comment https://forums.phpfreaks.com/topic/3684-running-scripts-automatically/#findComment-12792 Share on other sites More sharing options...
Ge64 Posted February 27, 2006 Author Share Posted February 27, 2006 [!--quoteo(post=349917:date=Feb 27 2006, 07:36 PM:name=joecooper)--][div class=\'quotetop\']QUOTE(joecooper @ Feb 27 2006, 07:36 PM) [snapback]349917[/snapback][/div][div class=\'quotemain\'][!--quotec--]tell me the files you want to run, and at what times, and ill add it to the cron jobs on my server[/quote]The site isnt finished yet so I don't know... Is there a cron jobs module for apache2? Quote Link to comment https://forums.phpfreaks.com/topic/3684-running-scripts-automatically/#findComment-12794 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.