Просмотр файла wps_1.0/conter.php
<? $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; ?>
<? $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; ?>