If you wish a script in PHP that will countdown the time you can use the following code:

$dtt_end = new DateTime('January 3, 2030 2:00 PM'); // the date to count down
$remain = $dtt_end->diff(new DateTime());
echo $remain->d . ' days, ' . $remain->h . ' hours';

So this is a simple refresh script that will show on the browser without any javascript, CSS or some other design….

If you wish something more complex you can start with this idea

You might find interesting:   Check If A Date Is In The Past Or In The Future in PHP

NO COMMENTS

LEAVE A REPLY