Hello I have been searching for this code, but I didnt find it anywhere. I am looking for applying this code in a project. I want to display the time , and if possible it should change on each second. What I mean is , just like a digital clock. Anybody know the code ? Thanks Vivek
I think you need a Javascript or flash to do this. You can set the time either based on server time or client's.
Quick search on google bought this up (it's in javascript and it will have to be if you want it to change without page reloads.) http://www.javascript-page.com/clock.html
Javascript rocks, but you could also be silly and do a PHP location directive that will refresh the page every seconds and display the current time with each refresh.
Thank you for the suggestions. Actually I haven't thought about javascript. I'll check it now. Regards
For the updated seconds you'll be using javascript but if you just want a static time in PHP have a look at the date() function - it's pretty easy to use.