Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_set_cookie_params(10800);
- session_start();
- ?>
- <?php
- $counterstand = intval(file_get_contents("counter.txt"));
- if(!isset($_SESSION['counter_ip']))
- {
- $counterstand++;
- file_put_contents("counter.txt", $counterstand);
- $_SESSION['counter_ip'] = true;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement