Dunque...
IIS nnè un tool ma un webserver equivalente ad apache con la fissa dell'asp..
sempre nel caso in cui tu abbia installato php come modulo di iis e che interpreti le pagine html e nn solo le pagine php.. la tua pagina diventa:
Codice PHP:
<?
define(ROOT,"./");
$cont = (int) implode("",file(ROOT.'contatore.txt'));
if (((int) time() - (int) $_COOKIE['contatore'])>=86400){
$h=fopen(ROOT.'contatore.txt','w+');
fwrite($h,++$cont);
fclose($h);
}
setcookie("contatore",time());
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>AltreAttivita</title>
<style type="text/css">
<!--
.Stile1 {font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
}
.Stile2 {font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
}
-->
</style>
</head>
<body>
<table width="255" height="259" border="0" align="center">
<tr>
<td>[img]immagini/sfondi/uc14.gif[/img]</td>
</tr>
</table>
</p>
<p align="center"><span class="Stile1"><span class="Stile2">[url="default.htm"][b]Torna alla Homepage [/b][/url]</span></span>
<? echo $cont;?> </p>
</body>
</html>
oppure, equivalentemente
Codice PHP:
<?
include("contatore.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>AltreAttivita</title>
<style type="text/css">
<!--
.Stile1 {font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
}
.Stile2 {font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
}
-->
</style>
</head>
<body>
<table width="255" height="259" border="0" align="center">
<tr>
<td>[img]immagini/sfondi/uc14.gif[/img]</td>
</tr>
</table>
</p>
<p align="center"><span class="Stile1"><span class="Stile2">[url="default.htm"][b]Torna alla Homepage [/b][/url]</span></span>
<? echo $cont;?> </p>
</body>
</html>
dove contatore.php è il mio codice messo in un file 
il numeretto magico l'ho piazzato in fondo alla pagina, nell'ultimo paragrafo che è centrato..