Author |
How to Detect a Device While Posting via WAP ? |
*Jojo* Joined: Oct 15, 2003 Posts: > 500 PM |
I was just wondering how the Esato database/system detects what fone was used when a member posted via WAP Does it have to play/recognize it via the Avatar used? This could be mind-boggling to know which-is-which specially with Ericsson/ fone models. I was surprised too that it can recognize Nokia models, like that of the 7650. Also, there are times that the words: "This Message was Posted from a WAP device" . . . is NOT being shown/posted when the REPLY was made thru one.
[addsig] |
|
Pradhika Joined: Jan 11, 2005 Posts: > 500 From: India PM |
Not only while posting via wap. We see many sites recognise the handset while browsing. How? Do you want to know the details of software?
This message was posted from a WAP device |
*Jojo* Joined: Oct 15, 2003 Posts: > 500 PM |
@prad - Esato's very-loyal WAP user for a looong time now. H m m m, so it's just a Software huh I thought it's something more than that . . .
[addsig] |
Miss UK Joined: Jan 11, 2003 Posts: > 500 PM |
I think the moderators select something on this site on the settings so when somebody posts from a T630 say it shows up as this post was posted from a T630,
I think they should have this ident for other manufactures to tho, Mods can't you select Samsung/Siemens/Sagem/Sharp so when these other members post we know what they're posting from etc
An "Apple" a day keeps the Doctor at Bay! |
mcrosser Joined: Oct 11, 2005 Posts: > 500 From: Peru PM |
suppose the phone sends information to identify itself, perhaps for security reasons of the wap page.
AVAILABLE - advertise here!!  |
*Jojo* Joined: Oct 15, 2003 Posts: > 500 PM |
As far as I can recall, Esato database can only recognize a very few Nokia models: 7650 is one and mostly / Ericsson brands . . . nothing more. The rest just says: WAP device.
[addsig] |
Johnex Joined: Nov 26, 2002 Posts: > 500 From: Stockholm/Sweden PM, WWW
|
This is what i have on my site:
$browser_type = $_SERVER['HTTP_USER_AGENT'];
if(stristr($browser_type, 'Firefox')) {
list($brsp1,$brsp2,$brsp3) = explode('/',$browser_type,3);
list($brsp4,$brsp5) = explode(' ',$brsp3,2);
$browser = str_replace('/',' ',$brsp5);
}
elseif(stristr($browser_type, 'MSIE')) {
$browser = preg_replace('#Mozilla\/(.*?) \(compatible; MSIE (.*?)\; (.*?)\)#s','Internet Explorer ',$browser_type);
}
elseif(stristr($browser_type, 'Opera')) {
list($brsp1,$brsp2) = explode(' ',$browser_type,2);
$browser = str_replace('/',' ',$brsp1);
}
else {
list($browser,$brsp1) = explode('/',$browser_type,2);
}
It correctly formats for all phones, like so: SonyEricssonZ1010 for example, and Opera, Internet Explorer Amoung others. It is buggy for certain mobile devices and browsers, but it is as close as you can get to automotation
This is php by the way.
[ This Message was edited by: Johnex on 2006-02-16 07:18 ] |
Miss UK Joined: Jan 11, 2003 Posts: > 500 PM |
lol hasn't the mods sorted out the sig for the D750i yet??? it comes up "Posted from a wap device"
An "Apple" a day keeps the Doctor at Bay! |
Jim Joined: Jan 20, 2002 Posts: > 500 From: Belgium PM |
In other words; each browser has an user agent and phone browsers have them too so it's easy to indentify them. Here are some examples I got from my apache log (webserver)
F500i - SonyEricssonF500i/R2AE SEMC-Browser/4.0.3 Profile/MIDP-2.0 Configuration/CLDC-1.1 UP.Link
K500i - SonyEricssonK500i/R2AE SEMC-Browser/4.0.3 Profile/MIDP-2.0 Configuration/CLDC-1.1
K700i - SonyEricssonK700i/R2AE SEMC-Browser/4.0.3 Profile/MIDP-2.0 Configuration/CLDC-1.1
K750i - SonyEricssonK750i/R1A Browser/SEMC-Browser/4.2 Profile/MIDP-2.0 Configuration/CLDC-1.1
You just need a php function to read that and paste it with the message and you are done.
|
mob453 Joined: Jul 10, 2005 Posts: 207 From: UK PM, WWW
|
howardforums actually post all that information when a post is from a mobile. |
|