How to make PHP date and time update automatically
<p>I have a script which displays the date and time.</p>

<p>How can I add something to make it update automatically instead of on page refresh.</p>

<p>Here is the script:</p>

<pre><code>&lt;?php
$hourdiff = 0; // Replace the 0 with your timezone difference (;
$site = date("l, d F Y g:i a",time() + ($hourdiff * 3600));
echo $site;
?&gt;
</code></pre>

<p>Can anyone help. Thanks. </p>
