|
From: Alessandro P. (T. / J578) <al...@ti...> - 2002-01-16 09:59:08
|
As I experienced in the project I'm mainly working on (phpWebSite), the
header("Location: blah"); directive is not understood fine by some
version of M$ Internet Exploder (should be: IE 5.x and 6). I suggest
this solution (this is what we used):
create a function:
function html_header_location($url) {
$agent = (phpversion() > "4.1.0") ? $_SERVER[HTTP_USER_AGENT] :
$HTTP_SERVER_VARS[HTTP_USER_AGENT];
if (stristr($agent, 'msie'))
Header("Refresh: 0;url=$url");
else
Header("Location: $url");
}
then replace all calls to header("Location: blah") with
html_header_location("blah");
HTH
Bye,
Alessadro
--
Alessandro "TXM" Pisani - al...@ti... - ICQ #2209087
phpWebSite Development Team http://phpwebsite.appstate.edu
INWO Project coordinator http://inwoproject.sourceforge.net
"I will carry you through, hicking and screaming,
and in the end you will thank me"
- Tyler Durden [from "Fight Club"]
|