You would use something like this to view their browser:
$HTTP_SERVER_VARS['HTTP_USER_AGENT'];
-or-
$_SERVER['HTTP_USER_AGENT']; (automatically global)
Here's an example of how you would do it. $string is the sort of text the above code woudl return:
PHP Code:
# as an example I have just used the mozilla/5.0 as a string
$string = "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Debian/1.6-5";
if(eregi('Mozilla/5.0', $string)) {
echo 'true';
} else {
echo 'False';
}
Here's a list of user agents:
http://www.zytrax.com/tech/web/browser_ids.htm
Here's a nice function I use that you can pass the long user agent string and get back a more readable result:
http://www.apptools.com/phptools/browser/source.php