Add this code in the header of the page.
This must be loaded BEFORE anything else.
1. Straight Auto Refresh
<?php header('Refresh: 120'); ?>
2. Auto Refresh and redirect to a new page
<?php header('Refresh: 120; url=http://www.pageto') ; ?>
Another Countdown and redirect scripts
<script language="Javascript"> <!-- /* This credit must stay here for use For this script, visit java-scripts.net or http://wsabstract.com */ var countdown = "1800" function doCount() { if (countdown > 0) { countdown-- } else { document.location = "../../../general/no_success.php" } window.status=countdown + " seconds left to view this page." setTimeout('doCount()',1000) } doCount() //--> </script>