What technologies are used to identify PC access or mobile access? What technologies are used to identify PC access or mobile access? For example, what technology does wap use to identify PC access or mobile access?
What technologies are used to identify PC access or mobile access? Example
Wap mobile phone
Share: 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/