Browser & OS checking function in PHP - in progress

As part of a larger project involving statistical tracking I was asked to write a small PHP function that checks the surfing browsers information for ; browser name, version info, host name, and OS name. The only component left is a section of code that checks the the OS version which was loosely written JavaScript that uses the DOM to easily check US name.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]