Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (empty($_COOKIE['count'])) {
- $count = $_COOKIE['count'] + 1;
- setcookie('count', $count);
- $file = 'user.txt';
- $current = file_get_contents($file);
- $current += 1;
- file_put_contents($file, $current);
- }
- $handle = fopen("user.txt", "r");
- echo fgets($handle);
- fclose ($handle);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement