desithugg Posted August 3, 2006 Share Posted August 3, 2006 umm is there anyway i can get some Integer rows in mysql to reset (set back to 0) whenever a new day starts? Link to comment https://forums.phpfreaks.com/topic/16467-timed-script/ Share on other sites More sharing options...
Orio Posted August 3, 2006 Share Posted August 3, 2006 You need to do a cron job for that.You basicly make the script the resets the number, and use a cron to run it every day :)Orio. Link to comment https://forums.phpfreaks.com/topic/16467-timed-script/#findComment-68680 Share on other sites More sharing options...
desithugg Posted August 3, 2006 Author Share Posted August 3, 2006 any sujjestion where to start? Link to comment https://forums.phpfreaks.com/topic/16467-timed-script/#findComment-68682 Share on other sites More sharing options...
Orio Posted August 3, 2006 Share Posted August 3, 2006 First, check if your host supports cron jobs.If it does, make the script and then set a cron job (do you have cpanel, Plesk or something like that?).If your host doesn't support cron jobs, you basicly cant do it.Orio. Link to comment https://forums.phpfreaks.com/topic/16467-timed-script/#findComment-68684 Share on other sites More sharing options...
desithugg Posted August 3, 2006 Author Share Posted August 3, 2006 umm i contacted my host and yes they do support cron jobs.I have made the scriot but what do i name the file.[quote]00 00 * * * /aff/reset.php[/quote] Link to comment https://forums.phpfreaks.com/topic/16467-timed-script/#findComment-68696 Share on other sites More sharing options...
desithugg Posted August 3, 2006 Author Share Posted August 3, 2006 umm i uploaded my file as cron.txt but how can i install it Link to comment https://forums.phpfreaks.com/topic/16467-timed-script/#findComment-68709 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.