M
Mike Row Soft
I am using this code
<?php
$browser = $_SERVER['HTTP_USER_AGENT'];
$agent = substr($browser, 0, 7);
switch($agent) {
case "Mozilla":
header("Location: index.html"); // this is where you put the page you
want desktops to see
break;
default:
header("Location: wml/index.wml"); // this is where your page for
mobiles goes
}
?>
to send PC visitors to my homepage and mobile visitors to my mobile page.
It works great on PDAs, but not at all on iPhones. Anybody know how to beef
it up to recognize iPhones, too?
<?php
$browser = $_SERVER['HTTP_USER_AGENT'];
$agent = substr($browser, 0, 7);
switch($agent) {
case "Mozilla":
header("Location: index.html"); // this is where you put the page you
want desktops to see
break;
default:
header("Location: wml/index.wml"); // this is where your page for
mobiles goes
}
?>
to send PC visitors to my homepage and mobile visitors to my mobile page.
It works great on PDAs, but not at all on iPhones. Anybody know how to beef
it up to recognize iPhones, too?