Re: How to update a clock every second?
| From: | Rick Yin | Date: | Sun, 10 Sep 2000 04:31:31 +0000 |
| Subject: | Re: How to update a clock every second? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-16028@lists.php.net to get a copy of this message | ||
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/