Mag mir das jemand übersetzen bitte?
If Browser = Msie
Goto = Url
Thx.
###
Google hat mich jedenfalls nicht zum Erfolg gebracht.
Folgender Versuch schlug fehl:
[code]if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== TRUE) {
header("http://www.domain.de/ordner/");
} else { }[/code]
Und damit gings auch nicht:
[code]if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== TRUE) {
$url = "http://www. domain.de/ordner/";
header("location:".$url);
} else { }[/code]
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')) {
header("http://www.domain.de/ordner/");
}
wennde php älter als 4.1 hast, musste noch HTTP_SERVER_VARS nehmen, statt _SERVER
was mir grade noch so auffällt an deinem Code, martin, ist das [code]!==[/code].
Das müsste, solltest Du bei browser(IE) === TRUE so setzen.
Seitentitel: Weiterleitung per Php abhängig vom Browser