What technology is now used to identify PC access or mobile Access?
What technology is now used to identify PC access or mobile Access? Title WAP Mobile Phone
Share to: more
------Solution--------------------
$ua = Strtolower ($_server[' http_user_agent ');
$uachar = "/(Nokia
------Solution--------------------
Sony
------Solution--------------------
Ericsson
------Solution--------------------
Mot
------Solution--------------------
Samsung
------Solution--------------------
Sgh
------Solution--------------------
Lg
------Solution--------------------
Philips
------Solution--------------------
Panasonic
------Solution--------------------
Alcatel
------Solution--------------------
Lenovo
------Solution--------------------
Cldc
------Solution--------------------
Midp
------Solution--------------------
Mobile
------Solution--------------------
Ipad
------Solution--------------------
Iphone
------Solution--------------------
Android)/I ";
if ($ua = = "
------Solution--------------------
Preg_match ($uachar, $ua)) &&!strpos (Strtolower ($_server[' Request_uri ')), ' WAP ')
{
Mobile Access
Header ("location:m.manshijian.com");
Exit
}else{
Pc
}
------Solution--------------------
http://www.16code.com/webapp-developer/