0

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>

Edited by davidjennings: wrong text element

2
Contributors
5
Replies
6
Views
7 Years
Discussion Span
Last Post by ivan3510
0

Maybe!!!!!
Maybe you have a virus. I had similar problem and I couldn't go to some page in localhost. Maybe due to virus (maybe I'm wrong)!

0

Hi Ivan, I did think of that so I have just installed McAfee and running a deep scan at present. I will update the forum accordingly once completed.

Thanks

David

0

Just one thing. If you didn't find any virus (and you still have a problem), maybe this virus has "option" to hide when an antivirus runns.

You're welcome!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.