...

View Full Version : PHP Count Down Timer



srule_
01-01-2008, 07:34 PM
I need a timer that will count down 10:00mins minutes and preform an event at 0:00mins and then restart back to 10:00mins and begin counting down again. This script must continue even when there are no users online. Does anyone know of a script, or point me in the right direction of how I can make this myself.

Iszak
01-01-2008, 07:56 PM
You're looking for a cron job, you'll want to make it activate every 10 minutes. You'll want it to make a timestamp of the current time + 10 minutes, and write that somewhere then call it and see how many seconds until that timestamp and that'll be the countdown. For a live countdown you'll need Javascript.

srule_
01-01-2008, 08:03 PM
People do not need to see the timer, it just needs to be happening in the background 24/7... I do not need javascript for that do i?

GO ILLINI
01-01-2008, 09:10 PM
no javascript runs purely on a clients machine. Therefore when there are no users, there is no counter.
PHP and cron would be my best bet also

-Adam



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum