Different information if it's a mobile browser

37 views
Skip to first unread message

Hans Rein Jacobi

unread,
Jun 2, 2014, 9:47:50 AM6/2/14
to brow...@googlegroups.com
We've implemented the latest PHP browsecap version. The strange thing is that the website sometimes gives different information if it's a mobile device. For example if I go to the webpage http://browscap.org/ua-lookup It detects a Galaxy SIII and HTC ONE M8 as mobile device but when i'm on our website it tells me it's not. iPhones don't give any problem.

Is it something what's obvious what i'm doing wrong?

Best regard

James Titcumb

unread,
Jun 2, 2014, 10:49:40 AM6/2/14
to browscap on behalf of Hans Rein Jacobi
Can you give us the UA string you are testing with?

Thanks
James



--
You received this message because you are subscribed to the Google Groups "browscap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to browscap+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Hans Rein Jacobi

unread,
Jun 3, 2014, 3:36:06 AM6/3/14
to brow...@googlegroups.com
This is the string from the Galaxy III
Mozilla/5.0 (Linux; U; Android 4.3; nl-nl; GT-I9300 Build/JSS15J) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30

Op maandag 2 juni 2014 16:49:40 UTC+2 schreef James Titcumb:

James Titcumb

unread,
Jun 3, 2014, 4:23:30 AM6/3/14
to browscap on behalf of Hans Rein Jacobi
What is the full information that is given when you call get_browser() on your site with that UA? Might be a configuration issue or something I'm thinking, as that UA definitely gets identified correctly.

THanks
James

Hans Rein Jacobi

unread,
Jun 3, 2014, 4:39:40 AM6/3/14
to brow...@googlegroups.com
The phone of the string i've send you was of a colleague that isn't here. We also had the problem with a HTC ONE m8. The full information is pasted below. If we use the browscap function getBrowers this is the array it returns, on a mobile browser with the same issue:

array(35) {
["browser_name"]=>
string(152) "Mozilla/5.0 (Linux; U; Android 4.4.2; nl-nl; HTC_One_M8/1.54.161.5 Build/KOT49H) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30"
["browser_name_regex"]=>
string(94) "^mozilla/5\.0 \(.*linux.*\) applewebkit/.* \(khtml, like gecko\) .*version/(\d)\..* safari/.*$"
["browser_name_pattern"]=>
string(77) "Mozilla/5.0 (*Linux*) AppleWebKit/* (KHTML, like Gecko) *Version/4.* Safari/*"
["Parent"]=>
string(10) "Safari 4.0"
["Platform"]=>
string(5) "Linux"
["Comment"]=>
string(10) "Safari 4.0"
["Browser"]=>
string(6) "Safari"
["Version"]=>
string(3) "4.0"
["MajorVer"]=>
string(1) "4"
["MinorVer"]=>
string(1) "0"
["Frames"]=>
bool(true)
["IFrames"]=>
bool(true)
["Tables"]=>
bool(true)
["Cookies"]=>
bool(true)
["JavaScript"]=>
bool(true)
["JavaApplets"]=>
bool(true)
["CssVersion"]=>
string(1) "3"
["RenderingEngine_Name"]=>
string(6) "WebKit"
["Platform_Version"]=>
string(7) "unknown"
["Platform_Description"]=>
string(7) "unknown"
["Alpha"]=>
bool(false)
["Beta"]=>
bool(false)
["Win16"]=>
bool(false)
["Win32"]=>
bool(false)
["Win64"]=>
bool(false)
["BackgroundSounds"]=>
bool(false)
["VBScript"]=>
bool(false)
["ActiveXControls"]=>
bool(false)
["isMobileDevice"]=>
bool(false)
["isSyndicationReader"]=>
bool(false)
["Crawler"]=>
bool(false)
["AolVersion"]=>
string(1) "0"
["Device_Name"]=>
string(7) "unknown"
["Device_Maker"]=>
string(7) "unknown"
["RenderingEngine_Version"]=>
string(7) "unknown"
}


Op dinsdag 3 juni 2014 10:23:30 UTC+2 schreef James Titcumb:

Hans Rein Jacobi

unread,
Jun 3, 2014, 4:44:14 AM6/3/14
to brow...@googlegroups.com
if we use the PHP function get_browser() to return browser information. It returns the following array:

nl; HTC_One_M8/1.54.161.5 Build/KOT49H) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30

Op dinsdag 3 juni 2014 10:23:30 UTC+2 schreef James Titcumb:

James Titcumb

unread,
Jun 3, 2014, 6:38:15 AM6/3/14
to brow...@googlegroups.com
Could you tell me exactly which version of browscap.ini you have? (e.g. 5029, full_php_browscap.ini)

Thanks
James

Hans Rein Jacobi

unread,
Jun 3, 2014, 6:41:42 AM6/3/14
to brow...@googlegroups.com
We use the latest version 5029.

Thanks for your effort

Op dinsdag 3 juni 2014 12:38:15 UTC+2 schreef James Titcumb:

Reply all
Reply to author
Forward
0 new messages