Jeff23 Posted May 29, 2003 Share Posted May 29, 2003 Okay, I\'m not even sure if what I am asking is possible, but here goes. I would like to make it so that every week a variable in my table will change to a default value. Quote Link to comment https://forums.phpfreaks.com/topic/523-automated-update-to-database/ Share on other sites More sharing options...
shivabharat Posted May 29, 2003 Share Posted May 29, 2003 Read more about cron jobs We have a tutorial here to help you ppl. :wink: Quote Link to comment https://forums.phpfreaks.com/topic/523-automated-update-to-database/#findComment-1756 Share on other sites More sharing options...
Jeff23 Posted May 29, 2003 Author Share Posted May 29, 2003 I know. I read about it but I can\'t figure out how to get it to apply using myPHP. I was wondering if there were any alternatives or if someone could help me get a CRON job working with myPHP. Quote Link to comment https://forums.phpfreaks.com/topic/523-automated-update-to-database/#findComment-1767 Share on other sites More sharing options...
shivabharat Posted May 30, 2003 Share Posted May 30, 2003 CRONJOB can be used only in linux or unix and it cant be used in windows What is the OS u have ? Quote Link to comment https://forums.phpfreaks.com/topic/523-automated-update-to-database/#findComment-1771 Share on other sites More sharing options...
gizmola Posted May 30, 2003 Share Posted May 30, 2003 I know. I read about it but I can\'t figure out how to get it to apply using myPHP. I was wondering if there were any alternatives or if someone could help me get a CRON job working with myPHP. I\"m not familliar with myPHP, is it a stats package? Well at any rate, windows does have the Task scheduler that you can use in a similar manner to cron. Quote Link to comment https://forums.phpfreaks.com/topic/523-automated-update-to-database/#findComment-1772 Share on other sites More sharing options...
Jeff23 Posted May 30, 2003 Author Share Posted May 30, 2003 Yes, I have windows. What exactly do I have to do with the task manager (if it is the same thing that I have running my virus checker and whatnot every week)? You are being very helpful, thanks! Quote Link to comment https://forums.phpfreaks.com/topic/523-automated-update-to-database/#findComment-1780 Share on other sites More sharing options...
gizmola Posted May 30, 2003 Share Posted May 30, 2003 Yes, I have windows. What exactly do I have to do with the task manager (if it is the same thing that I have running my virus checker and whatnot every week)? You are being very helpful, thanks! Basically go into the scheduler which is under the accessories|system menu and add a new entry there that calls php.exe directly like so: php -q yourscript.php > scriptstatus.html You need to make sure that the php.exe was installed and not just the module. Write and test yourscript.php, and make sure it works first, accessing it through your browser though. Quote Link to comment https://forums.phpfreaks.com/topic/523-automated-update-to-database/#findComment-1783 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.