como dice cluster, te quedaria algo asi:
<?
$archivo = "../pt.txt";
$abre = fopen($archivo, "r");
$total = fread($abre, filesize($archivo));
fclose($abre);
if(!$cookie_visita){$abre = fopen($archivo, "w");
$total = $total + 1;
$grabar = fwrite($abre, $total);
fclose($abre);
setCookie("cookie_visita",si);
}
echo "<font face='verdana' size='2'>Nº visitas:".$total."</font>";
?>
o eso creo, pruebalo y nos dices, saludos...
choly