<?php
$c = 'counter.txt';
if(!isset($_SESSION['counter'])){
file_put_contents($c, ( (int)file_get_contents($c)+1) );
$_SESSION['counter'] = true;
} <?php
$c = 'counter.txt';
if(!isset($_SESSION['counter'])){
file_put_contents($c, ( (int)file_get_contents($c)+1) );
$_SESSION['counter'] = true;
}