View file tennis/komanda/counter.php
<?php $count = file("count.dat"); $count = implode('', $count); $count = (int)$count; $count++; $fh = fopen("count.dat", "w"); fputs($fh, $count); fclose($fh); print $count; ?>
<?php $count = file("count.dat"); $count = implode('', $count); $count = (int)$count; $count++; $fh = fopen("count.dat", "w"); fputs($fh, $count); fclose($fh); print $count; ?>