Re: How to update a clock every second?
| From: | Steve Douville | Date: | Sun, 10 Sep 2000 08:23:28 +0000 |
| Subject: | Re: How to update a clock every second? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-16042@lists.php.net to get a copy of this message | ||
Why don't you use the JS script but set the start time with PHP before it is
sent to the browser. In other words, set the start time as a variable and
just add to it with the JS function.
steve
----- Original Message -----
From: Rick Yin <from929@yahoo.com>
To: Matt McClanahan <cardinal@dodds.net>
Cc: PHP List <php-general@lists.php.net>
Sent: Saturday, September 09, 2000 9:31 PM
Subject: Re: [PHP] How to update a clock every second?
> Actually I write one with Javascript. It takes the
> time from a user's system. But the user's system may
> have wrong time set.
>
> So now I'm thinking maybe I can use php to get the
> server time and then pass it over to javascript. Kind
> of a newbie here, if you don't think this would work,
> drop me a line.
>
> --- Matt McClanahan <cardinal@dodds.net> wrote:
> > On Sat, 9 Sep 2000, Rick Yin wrote:
> >
> > > I want to update the clock, whose time is taken
> > from
> > > the server, every second. I checked the "Date and
> > > time" part of tutorial, don't see a suitable
> > function.
> > > Experts tell me how to do it. If there's a live
> > one
> > > out there. please url me.
> >
> > Since you're talking about updating a web page after
> > it's already been
> > loaded, little alarms and bells should go off saying
> > "This has to be done
> > client-side" in your head. :) So, it needs
> > JavaScript.
> >
> > I know it can be done, because I just did it a few
> > days ago with a
> > coworker for his website-to-be, but the code that
> > does it has escaped my
> > head. I can get it from him Monday, but somebody
> > else on the list
> > probably has it more accessible.
> >
> > Matt
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail:
> > php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail:
> > php-general-help@lists.php.net
> > To contact the list administrators, e-mail:
> > php-list-admin@lists.php.net
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>