--- Adam Williams <[EMAIL PROTECTED]> wrote:
> I was wondering if someone knew how to display the time on the
> server to a web page that resides on that server, and have it
> update the time each second?

PHP can't do this. It executes on the server, not on the client.

> I was looking at javascript for this, but they all use the client 
> PC viewing the page to get the time, but I want it to display the
> server's time. any suggestions on how to do this?

You can probably have PHP write your JavaScript and start the clock from the
server's current time. This way, assuming the client's clock doesn't run too
terribly fast or slow, it will be very close to the server's time.

Hope that helps.

Chris

=====
My Blog
     http://shiflett.org/
HTTP Developer's Handbook
     http://httphandbook.org/
RAMP Training Courses
     http://www.nyphp.org/ramp

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to