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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.