referesh time automatically
Moderator: General Moderators
-
yasir_memon
- Forum Commoner
- Posts: 48
- Joined: Tue Aug 11, 2009 12:29 am
referesh time automatically
kindly tell me is there any function by which time automatically refresh as system time
Re: referesh time automatically
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
-
yasir_memon
- Forum Commoner
- Posts: 48
- Joined: Tue Aug 11, 2009 12:29 am
Re: referesh time automatically
thanks for reply yes kindly tell me java script code for that i want to do same as u said
-
yasir_memon
- Forum Commoner
- Posts: 48
- Joined: Tue Aug 11, 2009 12:29 am
Re: referesh time automatically
????????????
-
yasir_memon
- Forum Commoner
- Posts: 48
- Joined: Tue Aug 11, 2009 12:29 am
Re: referesh time automatically
??????????
Re: referesh time automatically
Assign a javascript variable to php's value of time().