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 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 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 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..... 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? 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? 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 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?! 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. Link to comment https://forums.phpfreaks.com/topic/88539-auto-command/#findComment-453281 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.