Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $filename = "count_file.txt";
- echo $data = (file_exists($filename)) ? file_get_contents($filename)+1 : 1;
- $file = fopen($filename,w); fwrite($file, $data); fclose($file);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement