Hi Scott,

If you are using IE, make sure that the browser checks for updates every
visit to the page. (Tools->Internet Options->Settings). I am not sure
that this setting observes Cache-Control, etc...

Are you setting the Cache-Control header to Private and the expires
header to a suitable time?

Regards,
Patrick Lynch
http://www.optip.com/

-----Original Message-----
From: Scott Fletcher [mailto:[EMAIL PROTECTED]] 
Sent: 15 May 2002 18:31
To: [EMAIL PROTECTED]
Subject: [PHP] header() -- function failed to due caching.


    I tried to use this script but it failed due to the caching.  Does
anyone know the way around hte problem or have a solution to the
problem?

    --- example script ----
  $url_address = $GLOBALS["HTTP_HOST"];

   switch ($url_address) {
       case "www.php.net":
           $url_address = "http://www.php.net/db2admin/db2_cleanup.php";;
           break;
       case "test.php.net":
           $url_address =
"https://test.php.net/db2admin/db2_cleanup.php";;
           break;
       default:
           $url_address = " <Undefined Url Address> ";
           echo $url_address;
           break;
   }
header("Location: $url_address");

    --- example script end ----



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to