Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ?php
- $file = "hits.txt";
- $fh = fopen($file,"r");
- $hits = fread($fh, 5);
- fclose($fh);
- $hits++;
- $fh = fopen($file, 'w');
- fwrite($fh, $hits);
- fclose($fh);
- // echo out the amount of hits the sute has gotten
- echo $hits;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement