i need php code which detect user mobile
Detect user mobile
Collapse
X
-
Use this code to detect browsers
PHP Code:<?
function raider_real_ua()
{
//GET REAL DEVICE USER AGENT
$keyname_ua_arr = array('HTTP_X_DEVICE_USER_AGENT', 'HTTP_X_OPERAMINI_PHONE_UA','HTTP_X_BOLT_PHONE_UA', 'HTTP_X_MOBILE_UA', 'HTTP_USER_AGENT');
foreach ($keyname_ua_arr as $keyname_ua) {
if (!empty($_SERVER[$keyname_ua])) {
return $_SERVER[$keyname_ua]; //REAL UA
break;
}
}
}
$short = explode(' ', raider_real_ua());
echo ''.$short[0];
?>
-
Originally posted by pyramid_raider View PostUse this code to detect browsers
PHP Code:<?
function raider_real_ua()
{
//GET REAL DEVICE USER AGENT
$keyname_ua_arr = array('HTTP_X_DEVICE_USER_AGENT', 'HTTP_X_OPERAMINI_PHONE_UA','HTTP_X_BOLT_PHONE_UA', 'HTTP_X_MOBILE_UA', 'HTTP_USER_AGENT');
foreach ($keyname_ua_arr as $keyname_ua) {
if (!empty($_SERVER[$keyname_ua])) {
return $_SERVER[$keyname_ua]; //REAL UA
break;
}
}
}
$short = explode(' ', raider_real_ua());
echo ''.$short[0];
?><!DOCTYPE html PUBLIC "-//WAPFORUM.RS
Comment
-
Originally posted by pyramid_raider View PostUse this code to detect browsers
PHP Code:<?
function raider_real_ua()
{
//GET REAL DEVICE USER AGENT
$keyname_ua_arr = array('HTTP_X_DEVICE_USER_AGENT', 'HTTP_X_OPERAMINI_PHONE_UA','HTTP_X_BOLT_PHONE_UA', 'HTTP_X_MOBILE_UA', 'HTTP_USER_AGENT');
foreach ($keyname_ua_arr as $keyname_ua) {
if (!empty($_SERVER[$keyname_ua])) {
return $_SERVER[$keyname_ua]; //REAL UA
break;
}
}
}
$short = explode(' ', raider_real_ua());
echo ''.$short[0];
?>
Originally posted by arnage View PostNice code, u wrote it yourself?
Comment
-
Originally posted by something else View PostIts funny if you google that code you see many different members of coding-talk's names to that function lolIt's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
Comment
-
Originally posted by pyramid_raider View Postsue me for changing copyrights or function name for that code lol.. if u want to share ur copyrigted codes than encrypt them before sharing else dont claim copyrights...I need some facebook likes, can you please help me
http://facebook.com/softwarefreakin
I noticed social media is really powerful
Well DONE is better than well SAID
Comment
Comment