Can some PHP expert please debug this script-it's supposed to detect the user's platform & browser and forward to the apporpriate css file
thanks in advice
<?
$browser=getenv(“HTTP_USER_AGENT”);
$msie=eregi(“msie”,$browser);
$mac=eregi(“mac”,$browser);
$win=eregi(“win”,$browser);
if ($msie && $mac) {
$cssfile = “macie.css”;
} else if ($msie && $win) {
$cssfile = “winie1.css”;
} else if ($mac) {
$cssfile = “macnav.css”;
} else if ($win) {
$cssfile = “winnav1.css”;
} else {
$cssfile = “other.css”;
}
?>
<link rel="stylesheet" href="/css/<? echo "$cssfile"; ?>" media="screen">