Location: PHPKode > scripts > giCounter > gicounter/example1.php
<?php

include_once("giCounter.php");

$counter = new giCounter();

echo $counter->get_counter(); // equal to $counter->process(1);

$counter->reset();

// new file
$counter->set_file("stat_file.txt");

$counter->get_counter(); // count in the file stat_file.txt

?>
Return current item: giCounter