header() -- function failed to due caching.
| From: | Scott Fletcher | Date: | Wed, 15 May 2002 17:31:26 +0000 |
| Subject: | header() -- function failed to due caching. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-97757@lists.php.net to get a copy of this message | ||
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 ----