What is Default Browser in PHP get_browser? -


i see search results in of get_browser resulting default browser example chrome users, on other hand not sure of users using think default browser results in case robots/crawlers/etc.

i'm using full_php_browscap.ini version , gets default browser value browser. default browser? , when get_browser return default browser?

i think 'default browser' returned when user-agent unknown. either agent missing browscap or maybe browscap can't found.

you can use $_server['http_user_agent'] find out wich user-agent used. maybe string made (robots indeed).

someone replied folowing on php manual page get_browser:

we using get_browser() function useragent mozilla/4.0 (compatible; msie 4.01; windows nt) get_browser function returning default browser , platform = unknown.

so added browscap.ini manually:

[mozilla/4.0 (compatible; msie 4.01; windows nt)] parent=ie 4.01 platform=winnt

i hope helps.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -