PHP/Utility Function/get browser
Using get_browser()
<?
$browser = get_browser();
if ($browser->platform == "WinXP") {
print "You are using Windows XP.";
} elseif ($browser->platform == "MacOSX") {
print "You are using Mac OS X.";
} else {
print "You are using a different operating system.";
}
?>