On Tue, Oct 07, 2003 at 03:48:27PM +0200, Alex Ciurea wrote: : : is it possible to show the live-clock from the server machine, using : php and javascript, without having to make refresh of that page?
AFAIK, no. PHP scripts get their time information from the server. JavaScript can get its time from the server or the client, but it counts the time on the client side. If your web browser counts time a bit more slowly or quickly than the server, the time drift would result in your JavaScript clock to become more inaccurate over time. Then you would have to refresh the PHP page and re-sync your JavaScript clock with the server. This is not be a big problem if your time drift is "minimal" and your intervals between page refreshes is "reasonable". -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php