Page 1 of 1

referesh time automatically

Posted: Tue Aug 25, 2009 11:57 pm
by yasir_memon
kindly tell me is there any function by which time automatically refresh as system time

Re: referesh time automatically

Posted: Wed Aug 26, 2009 12:17 am
by califdon
yasir_memon wrote:kindly tell me is there any function by which time automatically refresh as system time
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.

Re: referesh time automatically

Posted: Wed Aug 26, 2009 12:20 am
by yasir_memon
thanks for reply yes kindly tell me java script code for that i want to do same as u said

Re: referesh time automatically

Posted: Wed Aug 26, 2009 1:15 am
by yasir_memon
????????????

Re: referesh time automatically

Posted: Wed Aug 26, 2009 4:37 am
by yasir_memon
??????????

Re: referesh time automatically

Posted: Wed Aug 26, 2009 6:41 am
by jackpf
Assign a javascript variable to php's value of time().