Click to See Complete Forum and Search --> : Browser/OS Type


Dysan
03-12-2008, 03:00 PM
Using PHP, is it possible to detect what browser and OS the user is using, and store this information inside a database.

ss1289
03-12-2008, 03:04 PM
$_SERVER['HTTP_USER_AGENT'] will give you both.

felgall
03-12-2008, 03:18 PM
That will give you whatever the browser owner decides to tell you. The field is user editable and so they can change it if they want. Also browsers usually misidentify operating systems released after the browser was released. There is no way to get completely accurate information.