referesh time automatically
Posted: Tue Aug 25, 2009 11:57 pm
kindly tell me is there any function by which time automatically refresh as system time
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
If you mean with PHP, the current time can be obtained with date(), which will be the time when the HTML was assembled and sent to the browser. After that, of course, PHP is no longer running. If you mean something like a realtime clock on a web page, that obviously cannot be done with PHP, which only runs on the server. There are countless ways to do it with Javascript, but it will depend on the system time in the viewer's work station.yasir_memon wrote:kindly tell me is there any function by which time automatically refresh as system time