Esato

Forum > General discussions > Esato forum > How to Detect a Device While Posting via WAP ?

Author How to Detect a Device While Posting via WAP ?
*Jojo*
T68 grey
Joined: Oct 15, 2003
Posts: > 500
PM
Posted: 2006-02-16 03:08
Reply with quoteEdit/Delete This PostPrint this post
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
T610
Joined: Jan 11, 2005
Posts: > 500
From: India
PM
Posted: 2006-02-16 03:22
Reply with quoteEdit/Delete This PostPrint this post
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*
T68 grey
Joined: Oct 15, 2003
Posts: > 500
PM
Posted: 2006-02-16 03:25
Reply with quoteEdit/Delete This PostPrint this post
@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
Apple Iphone 5
Joined: Jan 11, 2003
Posts: > 500
PM
Posted: 2006-02-16 03:26
Reply with quoteEdit/Delete This PostPrint this post
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
C901 Black
Joined: Oct 11, 2005
Posts: > 500
From: Peru
PM
Posted: 2006-02-16 03:27
Reply with quoteEdit/Delete This PostPrint this post
suppose the phone sends information to identify itself, perhaps for security reasons of the wap page.

AVAILABLE - advertise here!!
*Jojo*
T68 grey
Joined: Oct 15, 2003
Posts: > 500
PM
Posted: 2006-02-16 03:31
Reply with quoteEdit/Delete This PostPrint this post
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
P990
Joined: Nov 26, 2002
Posts: > 500
From: Stockholm/Sweden
PM, WWW
Posted: 2006-02-16 08:16
Reply with quoteEdit/Delete This PostPrint this post
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
Apple Iphone 5
Joined: Jan 11, 2003
Posts: > 500
PM
Posted: 2006-03-04 03:08
Reply with quoteEdit/Delete This PostPrint this post
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
T39 black
Joined: Jan 20, 2002
Posts: > 500
From: Belgium
PM
Posted: 2006-03-04 23:43
Reply with quoteEdit/Delete This PostPrint this post
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
K770 Black
Joined: Jul 10, 2005
Posts: 207
From: UK
PM, WWW
Posted: 2006-03-05 01:11
Reply with quoteEdit/Delete This PostPrint this post
howardforums actually post all that information when a post is from a mobile.
Access the forum with a mobile phone via esato.mobi