|
From: Javier S. <js...@si...> - 2002-01-16 22:06:35
|
Hi Alessandro, thanks for your notice,
Yes, i know this problem ... But i i have noticed that if you put an
exit() command just after header() call,
it works just fine ... But perhaps there still some none working cases
with exit command ?
--
Javier Sixto
Alessandro Pisani (TXM / J578) wrote:
>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
>
|