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