![]() |
|
![]() |
| ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | vota: |
![]() |
![]()
![]() ![]()
![]() ![]()
![]() ![]()
![]() ![]()
![]() ![]()
![]() | ![]() |
$file = "modules/Ciopproverbi/counter.txt";//file containing hit count
$open = fopen($file, "r");
$hits = filesize($file);
$counter = fread($open, $hits);
fclose($open);
$open = fopen($file, "w");
++$counter;//adds 1 to ammount and displays it, to display before adding amount, change to $counter++
fwrite($open, $counter);
fclose($open);
echo $counter;
?>
| ![]() |
![]()
|