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.
Auto update time and date
Moderator: General Moderators
Re: Auto update time and date
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.
- afr_dnf2011
- Forum Newbie
- Posts: 14
- Joined: Mon Mar 21, 2011 8:20 pm
Re: Auto update time and date
Thanks Darhazer for your reply. Yes, I understand now.