Posted by *Jojo*
I was just wondering how the Esato database/system detects what fone was used when a member posted via WAP
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.
Posted by Pradhika
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?
Posted by *Jojo*
@prad - Esato's very-loyal WAP user for a looong time now. H m m m, so it's just a Software huh
Posted by Miss UK
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
Posted by mcrosser
suppose the phone sends information to identify itself, perhaps for security reasons of the wap page.
Posted by *Jojo*
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.
Posted by Johnex
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 ]
Posted by Miss UK
lol hasn't the mods sorted out the sig for the D750i yet??? it comes up "Posted from a wap device"
Posted by Jim
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.
Posted by mob453
howardforums actually post all that information when a post is from a mobile.