Re: header() -- function failed to due caching.
| From: | Scott Fletcher | Date: | Wed, 15 May 2002 18:36:17 +0000 |
| Subject: | Re: header() -- function failed to due caching. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-97772@lists.php.net to get a copy of this message | ||
Never mind, I'll just javascript instead! "location.replace('url');
"Scott Fletcher" <scott@abcoa.com> wrote in message
news:20020515173542.1392.qmail@pb1.pair.com...
> 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 ----
>
>