php get_browser() without browsecap directive

Submitted by morf on Wed, 09/28/2011 - 10:42pm

I'm probably not the only one who tried to use php function get_browser() on shared hostings and ran into serious troubles, because the directive wasn't set. I tried first parse browscap.ini file with parse_ini_file() function, however the file format isn't compatible with this function.

To cut the long story short, after some time i find exactly what i needed. The solution to this problem is called PHP standalone get_browser() for browscap. You can find all detailed information about usage on this website.