I\'m using this JS code to know what browser is user using for.
And I
You could also use the php native funcion get_browser()
IMPORTANT NOTE: You should have a browscap.ini file.