PHP - auto refreshing page
<p>I am using following code for a refreshing page, it is not reloading on completion.  The following code is not working sometime.</p>

<pre><code> $page = $_SERVER['PHP_SELF'];
 $sec = "10";
 header("Refresh: $sec; url=$page");
 echo "Watch the page reload itself in 10 second!";
</code></pre>
