PHP Classes

Hits Counter: Keep track of file download counts

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 68%Total: 1,460 All time: 2,676 This week: 112Up
Version License Categories
hitscounter 1.0.0GNU General Publi...Statistics, Files and Folders
Description 

Author

This class can be used to keep track of the number of times a file is download from a site.

It handles the request to serve the file contents with the appropriate HTTP headers. It supports resuming partially downloaded files.

The file download counters are stored in files that are read and updated once a file served by the class is fully downloaded.

The class can generate download links and present the current download count for a given file.

Picture of Nicolai Syvertsen
Name: Nicolai Syvertsen <contact>
Classes: 1 package by
Country: Norway Norway
Age: ???
All time rank: 18797 in Norway Norway
Week rank: 358 Up3 in Norway Norway Up

Screenshots  
  • hitscounter-screenshot.GIF
  Files folder image Files  
File Role Description
Plain text file hitscounter.php Class The class
Plain text file hitscountertest.php Example Example script using the class
Plain text file justafile.txt Data Test file to download

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,460
This week:0
All time:2,676
This week:112Up
User Ratings User Comments (1)
 All time
Utility:100%StarStarStarStarStarStar
Consistency:93%StarStarStarStarStar
Documentation:-
Examples:87%StarStarStarStarStar
Tests:-
Videos:-
Overall:68%StarStarStarStar
Rank:435