Multi Download Counter
Multi download counter is PHP script for counting different downloaded items. This new version is faster, more secure for errors and can show total number of downloads.
Example:
Examples you can see below and in left menu (total downloads)
Features:
- counting/downloading unlimited number of items
- simple installation
- CSS compatible with all browsers
- show total number of downloads
- display counted number for each item separately
- uses Flat File (txt file) and does not need MySQL or any other DB
- Free (GNU GENERAL PUBLIC LICENSE - Copyright (C) 2005-2012 Wangchuk Sonam)
Installation:
1. Extract mdc_9.zip in root folder
2. Insert all your items (.zip, .rar, etc.) in download folder. You can use some other place for your download items. Please read advanced option.
3. Open data.txt and type items one per line. Item_id cannot contain space. One line need to have item_id|start_number|path_to_file
icons|0|/mdc_9/download/icons.zip
mids|0|/mdc_9/download/mids.zip
music|0|/mdc_9/download/music.zip
4. Ones you are finish with write all your items in data.txt just copy all lines in display.txt
Advanced: If you are insert items in some other folder then download then you need to set right path in data.txt and display.txt
icons|0|/some_other_folder/icons.zip
mids|0|/some_other_folder/mids.zip
music|0|/some_other_folder/music.zip
5. Insert this code where you want to display total downloads:
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . "/mdc_9/scripts/display_total.php";
echo $totalNum;
?>
6. Insert this code where you want to display download number of one item:
<?php
$display = 'ITEM_ID';
include_once $_SERVER['DOCUMENT_ROOT'] . "/mdc_9/scripts/display.php";
echo $download;
?>
Note:
1. Don't forgot to change ITEM_ID in one id what you are set before in data.txt
2. If you want to display more then one item number per page use include instead of include_once for display.php
7. Insert this code where you want to display download link:
<?php
$mdc_path = "http://" . $_SERVER['SERVER_NAME'] . "/mdc_9/scripts/download.php";
echo '<a href="' . $mdc_path . '?id=ITEM_ID">DOWNLOAD NOW </a>';
?>
Note: Don't forgot to change ITEM_ID in one id what you are set before in data.txt
Need help with installation?
- 5 € offer include installation and customization for up to 10 download items. (For order please use Moneybookers donation button)
Any question? Don't hesitate to contact me.
Download:
Multi Download Counter v.9.0 is packed in mdc_9.zip file (9Kb)
2108 people have downloaded this script
If you like this site and my scripts:
- Support my work with donation
- Rate this script
- Place a link to Phoenix PHP on your website
- Refer Phoenix PHP in one of good Webmaster's forum
- Spread a word about Phoenix PHP
Other scripts:
Butterfly - online visitors counter
One-page Gallery
Hercules - image, banner rotator