$ua = $_SERVER["HTTP_USER_AGENT"]; if(ereg("DoCoMo",$ua)){ header("Location: http://www.sakura-dh.com/m/"); exit; }else if(ereg("J-PHONE",$ua)){ header("Location: http://www.sakura-dh.com/m/"); exit; }else if(ereg("UP\.Browser",$ua)){ header("Location: http://www.sakura-dh.com/m/"); exit; }else if(ereg("PDXGW",$ua)){ header("Location: http://www.sakura-dh.com/m/"); exit; } ?>