View file referstat/count.php

File size: 216B
<?php
include "config.php";
$f=fopen("stat".$pref.".dat","a+");
flock($f,LOCK_EX);
$count=fread($f,100);
$count++;
ftruncate($f,0);
fwrite($f,$count);
fflush($f);
flock($f,LOCK_UN);
fclose($f);
exit;
?>