Recently, I changed my main page on WIN2000AS, but now people who log in has to do CTRL F5 to view the updated main page, otherwise, they will view the old main page instead. How should I fix it? Appreciated for any reply!:eek:
you could do like this:
<?php // your code here... ?> <script language="JavaScript"> <!-- document.location="page.php"; //--> </script>
You can use the header() function to refresh/redirect the page. To be sure that you aren't sending anything to the browser prior to the header() command use output buffering with ob_start() and ob_end_flush() -- although ob_end_flush() isn't needed in MOST cases because it is called automatically at the end of script execution by PHP itself when output buffering is turned on either in the php.ini or by calling ob_start()
<?php ob_start(); ?> <?php // your page, script, or code here header("refresh: 5; url=http://$SERVER_NAME/page.php"); ?> <?php ob_end_flush(); ?>