PHP Classes

Page Counter: Display a graphical page hit counter

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   Screenshots Screenshots   View files View files (23)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2006-03-26 (9 years ago) RSS 2.0 feedStarStarStarStar 61%Total: 1,987 This week: 1All time: 1,872 This week: 1,282Up
Version License Categories  
dwi-hit-counter 1.0The PHP LicenseHTML, Graphics, User Management
Description Author  

This class can be used to display a graphical page hit counter.

It read, update and stores the page hit counts in text files.

The counter is displayed a sequence of HTML tags for images that represent each digit of the current page hit count.

The counter digits may display trailing zeros. The width and height of the digit images can also be configured.

The class comes with a set of digit image files but it can also be configured to use a set of the digit files from custom image directory.

New features are "Triger Page" the counter will only increment on a single page, but can be viewed on all pages.
3-D style border for use with borderless digits, gives the impression the whole counter is a single image.

Picture of Russell Nash
Name: Russell Nash <contact>
Classes: 3 packages by
Country: United Kingdom United Kingdom
Age: 40
All time rank: 51426 in United Kingdom United Kingdom
Week rank: 696 Down33 in United Kingdom United Kingdom Down

  • screen_shot.jpg
  Files folder image Files  
File Role Description
Files folder imageimages (1 directory)
Plain text file changes.txt Doc. summary of changes made
Plain text file example.php Example example script
Plain text file hit-counter.php Class class file

  Files folder image Files  /  images  
File Role Description
Files folder imagecounter (2 directories)

  Files folder image Files  /  images  /  counter  
File Role Description
Files folder imagealt_digits (10 files)
Files folder imagedigits (10 files)

  Files folder image Files  /  images  /  counter  /  alt_digits  
File Role Description
  Image file 0.gif Icon alternate 0 digit
  Image file 1.gif Icon Alternate 1 digit
  Image file 2.gif Icon alternate 2 digit
  Image file 3.gif Icon Alternate 3 digit
  Image file 4.gif Icon Alternate 4 digit
  Image file 5.gif Icon Alternate 5 digit
  Image file 6.gif Icon Alternate 6 digit
  Image file 7.gif Icon alternate 7 digit
  Image file 8.gif Icon Alternate 8 digit
  Image file 9.gif Icon Alternate 9 digit

  Files folder image Files  /  images  /  counter  /  digits  
File Role Description
  Image file 0.gif Icon counter digit
  Image file 1.gif Icon counter digit
  Image file 2.gif Icon counter digit
  Image file 3.gif Icon counter digit
  Image file 4.gif Icon counter digit
  Image file 5.gif Icon counter digit
  Image file 6.gif Icon counter digit
  Image file 7.gif Icon counter digit
  Image file 8.gif Icon counter digit
  Image file 9.gif Icon counter digit

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,987All time:1,872
 This week:1This week:1,282Up
 User Ratings  
 All time