Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2007
    Thanked 0 Times in 0 Posts

    I need a countdown for 3 hours and for it to repeat.

    I have a demo site I've built and I have set up a cron job to reset the database and file structure every 3 hours. I want to be able to let my viewers know when the demo site willl reset by giving them a countdown too.

    Can anyone provide the code required to get this done?

    thank you,

  2. #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Saskatoon, Saskatchewan
    Thanked 2,668 Times in 2,637 Posts
    Is this supposed to be in the Java forum, or is it supposed to be in the Javascript forum?
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

  3. #3
    Senior Coder
    Join Date
    Sep 2010
    Thanked 275 Times in 275 Posts
    You just need to have whatever script is doing the reset to make a file, of whatever type you can use, that notes the time the reset occurred, and to say when the next one will occur. Then when a visitor comes to the site, the index page will reference that file so your visitors will know.
    Welcome to http://www.myphotowizard.net

    where you can edit images, make a photo calendar, add text to images, and do much more.

    When you know what you're doing it's called Engineering, when you don't know, it's called Research and Development. And you can always charge more for Research and Development.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts