How to show User agent

Started on the old forum in February 2011 · view the original in the archive · old links redirect here

13 replies · 1,211 views · started 15 years ago · 1 min read

7 participants
naveed Junior · 17 posts #1

Hi there, can u pls tell me how to show mobile phone of users and instead of showing opera when they are browsing with opera mini show their real mobile phone e.g "You are here with:...."

atef201080 Developer · 58 posts #2

For mobile phone

<? $phone=explode(" ",$_SERVER['HTTP_USER_AGENT']); $phone=$phone[0]; print "You are using $phone"; ?>
naveed Junior · 17 posts #4

Thanks mates salam to you 🙂

Added after 2 minutes:

Bros can you please give me a script which shows guests online with their country flag next to mobile phone?

naveed Junior · 17 posts #6

Tried but they don't work pls help

subzero Super moderator Fellow · 3,954 posts #7

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

naveed Junior · 17 posts #8

I am not using lava

subzero Super moderator Fellow · 3,954 posts #9

Forget it then don't worry.

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

bigboss Developer · 110 posts #10

hidden wrote: for showing real browser

function getrealbrowser(){ 
$ubrr = $_SERVER['HTTP_USER_AGENT']; 
$ope = $_SERVER['HTTP_X_OPERAMINI_PHONE_UA']; 
if ($ope==""){ 
$br = $ubrr; 
}else{ 
$br = "$ope $ubrr"; 
} 
$br = mysql_real_escape_string($br); 
$br = htmlspecialchars($br); 
return $br; 
} 

Bro. i put this code in core.php but plz tell me now which code nned for profile in index.php?? sorry for bad my english.

subzero Super moderator Fellow · 3,954 posts #11

$browser = getrealbrowser();

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

bigboss Developer · 110 posts #12

subzero wrote: $browser = getrealbrowser();

But i wanna use Both Browser and if user using opera then Operamini phone: show phone

so plz give complete code.

ori Lead · 512 posts #13

the code is in this topic lol

ewanz Developer · 187 posts #14

in your index..... just check $brws Then you make like this....

$brws = getrealbrowser();

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close