$counterfile = "../stats/kounter540.dat";
$opencount = @fopen($counterfile,"r");
$currentcount = fread($opencount, filesize($counterfile));
fclose($opencount);
$newcount = $currentcount;
++$newcount;
$opennewcount = @fopen($counterfile,"w");
@fwrite($opennewcount, $newcount);
fclose ($opennewcount);
?>