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

/* sample five: image based hitcounter, but uses the lcd theme and look for unique visitors*/

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

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

// log unique visitors
$hit->uniqueVisitor(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