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];
?>
-
Nice code, u wrote it yourself?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
-
funny how functions get renamed ;)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];
?>
I didnt see your post arnage .... we was thinking the same thing lolOriginally posted by arnage View PostNice code, u wrote it yourself?
Comment
-
this function will soon get as many ''copyrights'' as lava script LMFAO !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 lolキノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
Comment
-
Bro.you're wrong somewhere...the people who shares doesn't ask for money but just their name as copyrights at the footer(not as 400*400 banners) I guess we can & we must give them the respect for their hard work of sleepless nights,hope you understand now.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