#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    65
    Rep Power
    15
    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
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Niteroi, RJ, Brazil
    Posts
    30
    Rep Power
    15
    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
    idnotfound@vircio.com.br

    [This message has been edited by IdNotFound (edited August 15, 2000).]
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2000
    Posts
    669
    Rep Power
    15
    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;

    header("Location: $link");

    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.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Pune, Maharashtra, India
    Posts
    86
    Rep Power
    15
    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).]
  8. #5
  9. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15

    <<
    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




    ------------------
    SR -
    webshiju.com
    www.jobxyz.com-IT Career Portal
    ezipindia.com--WebStudio


    "The fear of the LORD is the beginning of knowledge..."

Similar Threads

  1. Replies: 5
    Last Post: February 2nd, 2005, 12:28 AM
  2. UTF-8 problem in 4.1.1a
    By mehran20 in forum MySQL Help
    Replies: 1
    Last Post: February 8th, 2004, 02:21 PM
  3. Wierd problem inserting data with VB6
    By gregquinn in forum MySQL Help
    Replies: 5
    Last Post: February 2nd, 2004, 07:37 AM
  4. WinNT4 problem
    By sandipguha in forum Windows Help
    Replies: 0
    Last Post: January 27th, 2004, 02:06 AM
  5. weird java problem..please help
    By suwandy in forum Java Help
    Replies: 1
    Last Post: January 26th, 2004, 04:13 AM

IMN logo majestic logo threadwatch logo seochat tools logo