Verbat Posted January 30, 2008 Share Posted January 30, 2008 How can i make a code that will make an auto command at a specific time in a day? For example, every day at 12:00am i want it to update something in a DB. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/88539-auto-command/ Share on other sites More sharing options...
laffin Posted January 30, 2008 Share Posted January 30, 2008 it's called cron, u set the intervals and what command to run at those intervals Quote Link to comment https://forums.phpfreaks.com/topic/88539-auto-command/#findComment-453248 Share on other sites More sharing options...
vbnullchar Posted January 30, 2008 Share Posted January 30, 2008 or task scheduler on windows Quote Link to comment https://forums.phpfreaks.com/topic/88539-auto-command/#findComment-453249 Share on other sites More sharing options...
Verbat Posted January 30, 2008 Author Share Posted January 30, 2008 Thanks i'll check about it..... Quote Link to comment https://forums.phpfreaks.com/topic/88539-auto-command/#findComment-453251 Share on other sites More sharing options...
Verbat Posted January 30, 2008 Author Share Posted January 30, 2008 Just one question, now that i have the cron command i want where do i put it? Quote Link to comment https://forums.phpfreaks.com/topic/88539-auto-command/#findComment-453254 Share on other sites More sharing options...
vbnullchar Posted January 30, 2008 Share Posted January 30, 2008 what do you mean where to put it? Quote Link to comment https://forums.phpfreaks.com/topic/88539-auto-command/#findComment-453255 Share on other sites More sharing options...
vbnullchar Posted January 30, 2008 Share Posted January 30, 2008 check this out.. http://www.adminschoice.com/docs/crontab.htm Quote Link to comment https://forums.phpfreaks.com/topic/88539-auto-command/#findComment-453257 Share on other sites More sharing options...
Verbat Posted January 30, 2008 Author Share Posted January 30, 2008 what do you mean where to put it? I mean i put it in a PHP file or in the server somehow?! Quote Link to comment https://forums.phpfreaks.com/topic/88539-auto-command/#findComment-453260 Share on other sites More sharing options...
trq Posted January 30, 2008 Share Posted January 30, 2008 Cron is a *nix application that runs scripts/applications at a given time. While your script can be written in php, it has nothing at all to do with php. You need to put the job in your crontab file. See link above. Quote Link to comment https://forums.phpfreaks.com/topic/88539-auto-command/#findComment-453281 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.