Location: PHPKode > scripts > phpHitCounter > phphitcounter/examples/sample3.php
<?php

/* sample three: simple image based hitcounter */

// include the class
include("../hitcounter.class.php");

// create an object of the class
$hit=new hc("c:\hits.txt",true);

// set the counter mode to image
$hit->setCounterMode('image');

// register a site hit
$hit->hitSite();

// show the counter
$hit->showCounter();

?>
Return current item: phpHitCounter