Home > Archive > PHP Language > September 2006 > Countdown clock
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| Hi,
I am trying to build a clock that counts down from 0:20:00 to 0:00:00,
resets itself and starts over again.
Any idea how I can get that to work?
Thanks,
twomt.
| |
| Colin McKinnon 2006-09-14, 6:57 pm |
| twomt wrote:
>
> I am trying to build a clock that counts down from 0:20:00 to 0:00:00,
> resets itself and starts over again.
>
> Any idea how I can get that to work?
Yes - but you didn't say where you want the clock to run (client, server?),
whether you want to run it synchronously with real time, whether the clock
interacts with user actions, and what things the clock has to do - e.g.
launch other jobs.
C.
| |
|
| Colin McKinnon wrote:
> twomt wrote:
>
>
> Yes - but you didn't say where you want the clock to run (client, server?),
> whether you want to run it synchronously with real time, whether the clock
> interacts with user actions, and what things the clock has to do - e.g.
> launch other jobs.
>
> C.
kk,
The clock runs on the server side and for the time being I just want it
to countdown to 0 and then reset itself. It should basically determine
how much time there is left in a particular turn.
Optionally, I would like to see the option that it launches a script
when it reaches 0.
Thanks,
twomt
| |
|
| On Thu, 14 Sep 2006 22:16:06 +0200, twomt <twomt@somewhere.net> wrote:
>Hi,
>
>I am trying to build a clock that counts down from 0:20:00 to 0:00:00,
>resets itself and starts over again.
>
>Any idea how I can get that to work?
>
>Thanks,
>twomt.
there are many javascript countdown clocks
google it
| |
|
|
Gleep wrote:
> On Thu, 14 Sep 2006 22:16:06 +0200, twomt <twomt@somewhere.net> wrote:
>
>
>
> there are many javascript countdown clocks
> google it
He said he wanted to run it on server side. Javascript won't be good.
Gleep,
You probably need to write cgi. How are you going to read the timer?
through an automatic process (when time is up it writes to a file and
you examine the file) or having the time displayed on a browser?
I would suggest you give some thoughts on design requirement first.
then it would help you to determine the best approach to solve the
problem.
Shawn
| |
| Ian Hobson 2006-09-19, 6:57 pm |
| twomt wrote:
> Colin McKinnon wrote:
[color=darkred]
>
> The clock runs on the server side and for the time being I just want it
> to countdown to 0 and then reset itself. It should basically determine
> how much time there is left in a particular turn.
>
Assuming that you are using php on a server means you are talking about
serving web pages.....I doubt you will have much success.
The client will time out the server after 3, 5 or 6 minutes (depending
on the browser), and most server set-ups have timers set to catch
run-away processes, so your server program will be killed after 300
seconds.
What are you trying to achieve?
Regards
Ian
| |
| Such Skywalker 2006-09-20, 7:57 am |
| I thinx u should mix client and server programming.
|
|
|
|
|