i don't know why my php code within the <html> doesn't work at all.
<!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 name="xsoldier2006" content="xsoldier2006, 2006, xsoldier, henry li, veteran 2006" />
<link rel="stylesheet" type="text/css" href="css/text.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Xsoldier_Home</title>
</head>
<body bgcolor="#333333">
<?php
$count = $_COOKIE[ 'visits' ];
if( $count == "")
{
$count = 1;
}
else
{
$count++;
}
setcookie("visits", $count);
echo "you are visitor number $count";
?>
</body>
</html>
basically i tried just <?php echo "hi" ?> and it wouldn't work too. it gotta be something missing i guess.
thanks