PHP Classes

Hits Counter: Keep track of file download counts

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 68%Total: 1,461 All time: 2,676 This week: 488Up
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: 18817 in Norway Norway
Week rank: 180 Up1 in Norway Norway Up

Screenshots (1)  
  • hitscounter-screenshot.GIF
  Files folder image Files (4)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,461
This week:0
All time:2,676
This week:488Up
User Ratings User Comments (1)
 All time
Utility:100%StarStarStarStarStarStar
Consistency:93%StarStarStarStarStar
Documentation:-
Examples:87%StarStarStarStarStar
Tests:-
Videos:-
Overall:68%StarStarStarStar
Rank:417