Use a
<meta>
redirect instead of a header redirect, like so:<?php $page = $_SERVER['PHP_SELF']; $sec = "10"; ?> <html> <head> <meta http-equiv="refresh" content="<?php echo $sec?>;URL='<?php echo $page?>'"> </head> <body> <?php echo "Watch the page reload itself in
$sec
second!"; ?> </body> </html>
<script language="javascript">
setInterval(function(){
window.location.reload(1);
}, 30000);
</script>
<script language="javascript"> setTimeout(function(){ window.location.reload(1); }, 30000); </script>
0 Comments