View file tennis/komanda/chm/gal/counter.php

File size: 249B
<?
$filename = "counter.dat";
$fp = @fopen ($filename, "r");
if($fp) { $counter = fgets($fp, 10);
fclose($fp); 
} else { $counter = 0;
 }
 $counter++;
 $fp = @fopen($filename, "w");
 if($fp) 
{ $w = fputs($fp, $counter); fclose($fp); }
?>