Page 1 of 1

Auto update time and date

Posted: Fri Mar 25, 2011 9:03 am
by afr_dnf2011
How can I auto update time and date in php without refresh the page?

It can do that using javascript. But can't find a way to do that using php.

Re: Auto update time and date

Posted: Fri Mar 25, 2011 9:32 am
by Darhazer
You cannot because of the way http (and browser) works. Even if you keep the connection open, you need a client-side code (javascript) to interpret the new data and display it on the page.

Re: Auto update time and date

Posted: Fri Mar 25, 2011 8:44 pm
by afr_dnf2011
Thanks Darhazer for your reply. Yes, I understand now.