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


$weight = 36.0;
$rate = 1.00;
$minimum = 37.00;

<!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">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


$destination = "Tokyo";
echo "Traveling to $destination<br />";
switch ($destination){
	case "Las Vegas":
		echo "Bring an extra $500";
	case "Amsterdam":
		echo "Bring an open mind";
	case "Egypt":
		echo "Bring 15 bottles of SPF 50 Sunscreen";
	case "Tokyo":
		echo "Bring lots of money";
	case "Caribbean Islands":
		echo "Bring a swimsuit";

$sub=$weight * $rate;

if ($sub <= $minimum) {
	$total= $minimum;
	$total = $sub;

echo $total;


Recommended Answers

All 5 Replies

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.



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?


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.