Jump to content

looking for a continous countdown script using server crons...


2DaysAway

Recommended Posts

I own a game where I use php crons to update game ranks every five minutes and issue turns every ten minutes. These work fine. What happens though when you view a ranks page the time stops. I would like to see the time to continue to run down. I'm wondering if there is a script that could implement this. I'm thinking a javascript using the server crons.

 

Any ideas or is this a lost cause?

Another option is to use independent javascript that is sychnronized with your cron jobs.  For example, if your cron runs every 10 minutes, and your script is executed at 5:03, then you would initialize the javascript with 7 minutes to go.  It would then count down to the next cron run without needing to communicate in any way with the cron job.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.