$counter = "count";
$fp = @fopen($counter, "r");
$hits = @fread($fp, filesize($counter));
@fclose($fp);
if($hits=="") {
$hitno = $hits = 1;
}else{
$hitno = $hits;
}
if ($inc == 1) {
$hits++;
$filetoburn = $counter;
//unlink($filetoburn);
//write to the file
$filename = $counter;
$file = fopen($filename, "w+t") or die("");
fwrite($file, $hits) or die("can't write file");
fclose($file) or die("can't close file");
}
$countVars = strlen($hits);
for ($i = 0; $i < $countVars; $i++) {
echo "
 . "29.gif)
";
}
//echo $hitno;
?>