Jump to content

Script to refresh the returned time as the second runs


co.ador

Recommended Posts

I Have the script below that returns the time in the screen for users. But there is a problem that it won't refresh as the second runs at least there is a F5 manual refresh to the browser!.

 

<?php
  $currentdate = date("F j, Y,"); 
  $currenttime = date( "h:i:s A");
  echo " Current Date: $currentdate<br>
         Current Time: $currenttime<p>";     
  ?> 

Sorry

I wanted to put a live running clock without having to refresh the browser to update the time every time to know the actual time. The script in the first post will return the time but it won't automatically keeping refreshing unless clicking F5

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.