Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header('Content-Type: text/html; charset=utf-8');
- $f=fopen("chetchik.dat","a+");
- flock($f,LOCK_EX);
- $count=fread($f,100);
- @$count++;
- echo "Кол-во входов на страницу = $count";
- ftruncate($f,0);
- fwrite($f,$count);
- fflush($f);
- flock($f,LOCK_UN);
- fclose($f);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement