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 below will return the time but it won’t automatically keeping refreshing unless clicking F5
<?php
$currentdate = date("F j, Y,");
$currenttime = date( "h:i:s A");
echo " Current Date: $currentdate<br>
Current Time: $currenttime<p>";
?>