RE: [PHP] header() -- function failed to due caching.

From: Date: Wed, 15 May 2002 22:21:20 +0000
Subject: RE: [PHP] header() -- function failed to due caching.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-97835@lists.php.net to get a copy of this message
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:scott@abcoa.com] Sent: 15 May 2002 18:31 To: php-general@lists.php.net 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

« previous php.general (#97835) next »