August 15th, 2000, 04:14 AM
Hi, I had done a page which will detect the user resolution and redirect it to the page that suit the resolution. After redirected to that page, lets say a.php3 and it will do a variable check to set the a.php3 page have to refersh one time for every time user go to the page. I set it to refersh because i have some "real time" information to update the page every 30 minutes. So, this means from index.php it go to a.php and refersh one time, this will make the page busy.
So, do any one can help to solve this problem. Maybe there are a way to disable the browser's cache to prevent showing the outdated page.....thankss
August 15th, 2000, 04:47 PM
Dunno if I could understand but... Here goes my tip.
Try the meta tags.
I've made a search in Altavista.com for these meta tags and found lots of stuff...
You can make the page expires and refresh at every X seconds/minutes
I think that should solve your problem.
Eduardo Teixeira Cardoso
PHP Programmer from Brazil
[This message has been edited by IdNotFound (edited August 15, 2000).]
August 15th, 2000, 07:41 PM
Are using the header function to redirect?
if so try making a variable called $nocache
and make it equal to uniz time
$nocache = time();
then create your link like this
$link = "a.php3?nocache=".$nocache;
This will cause the page to load with a varibale that really does nothing except ensure that the number is different every second so the page will load fresh from the server every time.
August 16th, 2000, 04:39 AM
Just add this line in your page at the head porion this refreshes the page after every 30 seconds.
<meta http-equiv="refresh" content="30;url=yoururl.php">
[This message has been edited by nikunj (edited August 16, 2000).]
August 16th, 2000, 05:04 AM
Maybe there are a way to disable the browser's cache to prevent showing the outdated page.....thankss
we can disable the caching using the following..
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Pragma: no-cache"); // HTTP/1.0
just place this top of your php script.
header() must be called before any actual output is sent either by normal HTML tags or from PHP
www.jobxyz.com-IT Career Portal
"The fear of the LORD is the beginning of knowledge..."