<? $f=fopen("db/ct.dat","a+"); flock($f,LOCK_EX); $count=fread($f,100); @$count=$count+1; ftruncate($f,0); fwrite($f,$count); fflush($f); flock($f,LOCK_UN); fclose($f); echo $count; ?>