Esato Mobile
General discussions : Esato forum : How to Detect a Device While Posting via WAP ?
> New Topic
> Reply
< Esato Forum Index > General discussions > Esato forum > How to Detect a Device While Posting via WAP ? Bookmark topic
*Jojo* Posts: > 500

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.
--
Posted: 2006-02-16 03:08:38
Edit : Quote

Pradhika Posts: > 500

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
--
Posted: 2006-02-16 03:22:09
Edit : Quote

*Jojo* Posts: > 500

@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 . . .
--
Posted: 2006-02-16 03:25:46
Edit : Quote

Miss UK Posts: > 500

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: 2006-02-16 03:26:07
Edit : Quote

mcrosser Posts: > 500

suppose the phone sends information to identify itself, perhaps for security reasons of the wap page.
--
Posted: 2006-02-16 03:27:03
Edit : Quote

*Jojo* Posts: > 500

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: 2006-02-16 03:31:38
Edit : Quote

Johnex Posts: > 500

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: 2006-02-16 08:16:10
Edit : Quote

Miss UK Posts: > 500

lol hasn't the mods sorted out the sig for the D750i yet??? it comes up "Posted from a wap device"
--
Posted: 2006-03-04 03:08:22
Edit : Quote

Jim Posts: > 500

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: 2006-03-04 23:43:18
Edit : Quote

mob453 Posts: 207

howardforums actually post all that information when a post is from a mobile.
--
Posted: 2006-03-05 01:11:59
Edit : Quote

New Topic   Reply
Forum Index

Esato home