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

/* sample four: simple image based hitcounter, but uses the lcd theme*/

// 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');

// use the lcd theme
$hit->setTheme('lcd');

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

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

?>
Return current item: phpHitCounter