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

    Join Date
    May 2000
    Posts
    65
    Rep Power
    15
    Hi! I am trying to refresh a page whenever user click the back button or bookmark the page......I have tried the php header() function but it seen like nothing happen. So, i am asking for any helpful javascript to use inside to php code or not, is yes, how....
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    16
    Rep Power
    0
    none of those HTML headers seem to work universally - some work only with proxy caches - some only with client caches - it's just confusing and useless!!!

    the way to go is HTTP headers...
    here's all u need to know
    http://www.mnot.net/cache_docs/

    Ajmal.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    2
    Rep Power
    0
    Try this before anything all the way at the top with no whitespace in PHP.


    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

Similar Threads

  1. PHP scripts to run in Javascript continuously
    By linhardt in forum JavaScript Development
    Replies: 0
    Last Post: February 13th, 2004, 02:51 PM
  2. javascript inside php tags
    By andy123 in forum JavaScript Development
    Replies: 5
    Last Post: February 5th, 2004, 04:34 PM
  3. create a new php page from within another php page
    By raviram80 in forum PHP Development
    Replies: 1
    Last Post: August 8th, 2003, 01:49 PM
  4. Replies: 3
    Last Post: March 31st, 2003, 04:40 PM
  5. getting javascript error when using PHP and javascript
    By Dalamar in forum JavaScript Development
    Replies: 8
    Last Post: December 17th, 2001, 07:41 AM

IMN logo majestic logo threadwatch logo seochat tools logo