PHP Time and Date

Hi there, on my website, I use a clock… at the moment, I am using this code: [php]

<?php
date_default_timezone_set(“Europe/London”);
echo "Date: " . date(“Y/m/d”) . “
”;
?>

			<p><?php
				date_default_timezone_set("Europe/London");
				echo "Time: " . date("h:ia");
			?></p></h1>[/php], but I need it to be automatically updating, like a digital clock... Is there anyone who can help me?

To be automatically updating you’ll going to have to use JQUERY or JAVASCRIPT.

Here are some tutorials for that.

Sponsor our Newsletter | Privacy Policy | Terms of Service