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

    Join Date
    May 2000
    Posts
    65
    Rep Power
    15
    Hi, every one!

    I have a simple problem here but i can not fix it, can anyone help me?

    I am trying to make a auto refresh on one page after a transaction.I only one it to refresh one time which user go to that page every time?
  2. #2
  3. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15
    hi,

    for reloading a page after a regular interaval you can use meta refresh in html.


    << I am trying to make a auto refresh on one page after a transaction.
    >>



    one option , is you can use window.reload() in java script.
    But it may give some problem in old versions of netscape.


    <<
    I only one it to refresh one time which user go to that page every time?
    >>


    i think you are facing page caching problem.isn't it??.

    in that case use header() function to solve that in php3.

    eg:

    header("Cache-Control: no-cache, must-revalidate");


    ------------------
    SR -
    shiju.dreamcenter.net

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



    [This message has been edited by Shiju Rajan (edited May 19, 2000).]
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    65
    Rep Power
    15
    Hi, thank for the reply.

    I had try to put the code "Header()" you give into my html page, but it doesn't make any different. I put the code before the html tag, is it right? if not where should i put.....
  6. #4
  7. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15

    header() must be called before any actual output is sent either by normal HTML tags or from PHP.


    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.




    ------------------
    SR -
    shiju.dreamcenter.net

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

Similar Threads

  1. header/footer in html (each page) just like word file
    By nihaarika2002 in forum HTML Programming
    Replies: 4
    Last Post: April 12th, 2004, 01:51 PM
  2. XHTML not allowing Transitional w/ PHP HTML
    By PFCritics in forum PHP Development
    Replies: 1
    Last Post: February 16th, 2004, 08:32 PM
  3. Replies: 0
    Last Post: February 8th, 2004, 11:11 PM
  4. Replies: 1
    Last Post: February 2nd, 2004, 12:51 PM
  5. Can php be used in html files
    By emzyme in forum PHP Development
    Replies: 3
    Last Post: January 29th, 2004, 02:50 PM

IMN logo majestic logo threadwatch logo seochat tools logo