Hi all, I am using WAMP2 on my desktop. each time I run a php page the code is echoed to the screen. The icon in the lower tool bar is white/grey I have had in working I then installed new anti-virus software and that is when I noticed that it wasn't working. I have reinstalled WAMP2 nd it is the same. The page works on my domain server.
I have uninstalled the anti-virus software and problem still remains
Does anyone have any idea or elimination tests
Thanks in advance
David
<?php
$weight = 36.0;
$rate = 1.00;
$minimum = 37.00;
$total=0;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test</title>
</head>
<body>
<?php
$destination = "Tokyo";
echo "Traveling to $destination<br />";
switch ($destination){
case "Las Vegas":
echo "Bring an extra $500";
break;
case "Amsterdam":
echo "Bring an open mind";
break;
case "Egypt":
echo "Bring 15 bottles of SPF 50 Sunscreen";
break;
case "Tokyo":
echo "Bring lots of money";
break;
case "Caribbean Islands":
echo "Bring a swimsuit";
break;
}
$sub=$weight * $rate;
if ($sub <= $minimum) {
$total= $minimum;
}
else
{
$total = $sub;
}
echo $total;
?>
</body>
</html>