Location: PHPKode > scripts > JPCounterClass > jpcounterclass/index.php
<?php

include "class.php"; //include the file, everything set up already

$cnt->Hit($_SERVER); //add a hit!, make sure to put $_SERVER as the param, or IT WONT WORK!
 
echo "Total Count: " . $cnt->Total();							echo "<br>";
echo "This Page Count: " . $cnt->Page();	 					echo "<br>";
echo "Today Count: " . $cnt->Today(); 							echo "<br>";
echo "Today Page Count: " . $cnt->TodayPage(); 					echo "<br>";
echo "2-Day Count: " . $cnt->Days(2); 							echo "<br>";
echo "2-Day Page Count: " . $cnt->DaysPage(2); 					echo "<hr>";

//Unique is done by IP address
echo "Unique Count: " . $cnt->UniqueTotal(); 					echo "<br>";
echo "Unique Page Count: " . $cnt->UniquePage(); 				echo "<br>";
echo "Unique Today Count: " . $cnt->UniqueToday(); 				echo "<br>";
echo "Unique Today Page Count: " . $cnt->UniqueTodayPage(); 	echo "<br>";
echo "Unique 2-Day Count: " . $cnt->UniqueDays(2); 				echo "<br>";
echo "Unique 2-Day Page Count: " . $cnt->UniqueDaysPage(2); 	echo "<hr>";

echo $cnt->AddImage(rand(1,7));

?>
Return current item: JPCounterClass