@NogDogApr 09.2008 — #If looking for a purely PHP, server-side solution, you can use something like [url=http://www.php.net/get_browser]get_browser[/url](), but all such server-side solutions are dependent upon what information is sent by the browser, and as such can never be depended upon to be accurate or consistent (or even to have been sent at all by the browser).
@HuevoosApr 09.2008 — #For server side detection I made a couple of functions, please note that as NogDog said you can't trust 100% on the info the browser sends. I use them for statistic purposes only
here are the functions:
[code=php] function parse_useragent($agent){ $parts = preg_split('/(?(?![^(]*))s(?!()|x{7})/', $agent); $data = array(); foreach($parts as $key => $value){ switch($key){ case 0: list($data['product'], $comment) = explode(' (', $value);