Skip to content

Xeroday/PHP-Download-Counter

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
www
 
 
 
 
 
 

DLCounter

DLCounter is a simple and clean flat-file PHP download counter. It's compatible with all web servers running PHP 5.x, does not require SQL, and is extremely easy to set up.

Installation/Usage:

  1. Upload www to your server and rename it to anything you want, ex: /download.
  2. Upload your files to the /files directory, ex: /download/files.
  3. Create tracked links with index.php?file=FILENAME, ex: /download/?file=my_file.exe
  4. View your download stats and client info in /stats.

Customization:

  • The directories for logging stats (default: /stats) and for uploading files (default: /files) can be changed by editing their respective values in config.php
  • If you are on a non-*nix machine and/or do not have PHP exec enabled, set the 'nixWithExec' value in config.php to false
  • Change your default time zone in the config file
  • Change what client info is logged and formatted in the log file in the config file
  • If you want to secure your stats folder, you should either rename it (method above) or lock it with .htaccess

About

Flat file PHP Download Counter with detailed logging

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages