Dear All I have a piece of code written in php for time and date display funtion. <?php echo date('d-M-y H:i:s'); ?> Output of the above code is 11-Aug-09 10:56:12 I would like seconds to change continuously without refreshing the page. What are the modifications do i need to change. Thanks in advance.
Because PHP is server side, it will only update when you request the page. You need to use something like JavaScript to actually display the clock, and the ticking seconds. What I suggest you do, is get the correct time from your server using PHP, then use that to set the time on a JavaScript clock (with seconds).