darkfreaks Posted June 11, 2008 Share Posted June 11, 2008 ok so in cronjob.php i have an update query like $sql= mysql_query("UPDATE videos SET todayview = 0") i put it to update in cronjobs every 5 minutes but it seems like it executes every 5 seconds? any reason this could be? Quote Link to comment https://forums.phpfreaks.com/topic/109789-more-cronjob-problems/ Share on other sites More sharing options...
DarkWater Posted June 11, 2008 Share Posted June 11, 2008 Uhh, you entered the wrong time maybe? Quote Link to comment https://forums.phpfreaks.com/topic/109789-more-cronjob-problems/#findComment-563384 Share on other sites More sharing options...
darkfreaks Posted June 11, 2008 Author Share Posted June 11, 2008 its set to update the file every 5 minutes every day every month every year am i going wrong somewhere? Quote Link to comment https://forums.phpfreaks.com/topic/109789-more-cronjob-problems/#findComment-563385 Share on other sites More sharing options...
darkfreaks Posted June 11, 2008 Author Share Posted June 11, 2008 nevermind problem solved Quote Link to comment https://forums.phpfreaks.com/topic/109789-more-cronjob-problems/#findComment-563387 Share on other sites More sharing options...
darkfreaks Posted June 11, 2008 Author Share Posted June 11, 2008 blah topic not solved i guess this is a code issue ??? all i have in right.tpl is the update query and it keeps executing even before cron has a chance to execute. query: $sql= mysql_query(UPDATE videos SET todayview = 0"); Quote Link to comment https://forums.phpfreaks.com/topic/109789-more-cronjob-problems/#findComment-563422 Share on other sites More sharing options...
.josh Posted June 11, 2008 Share Posted June 11, 2008 keeps executing even before the cron? Did you manage to make more than one cron job? Perhaps you wrote the cron job wrong and it's executing more than you expect it to? Perhaps you have some other script executing it? Quote Link to comment https://forums.phpfreaks.com/topic/109789-more-cronjob-problems/#findComment-563471 Share on other sites More sharing options...
bluejay002 Posted June 12, 2008 Share Posted June 12, 2008 can you show how you made that cron job? i think its either you forgot something in your cron job or there is another cron job that does the same thing. Quote Link to comment https://forums.phpfreaks.com/topic/109789-more-cronjob-problems/#findComment-563554 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.