Advertisement
wofus

Webseitencounter

Nov 18th, 2022 (edited)
1,126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. <?php
  2. session_set_cookie_params(10800);
  3. session_start();
  4. ?>
  5.  
  6. <?php
  7. $counterstand = intval(file_get_contents("counter.txt"));
  8.  
  9. if(!isset($_SESSION['counter_ip']))
  10.    {
  11.    $counterstand++;
  12.    file_put_contents("counter.txt", $counterstand);
  13.  
  14.    $_SESSION['counter_ip'] = true;
  15.    }
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement