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>

Recommended Answers

All 5 Replies

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)!

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

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!

Hi Again, If this is the case how do you effect removal of such?

cheers
David

Reinstalling the system.
But maybe I'm wrong.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.