Phoenix PHP - uncommon free scripts, free download July 05, 2008  
  

Change to: Hrvatski  
 Home | Contact Us | Partners 
 

 



Hi, would you like to help us? We are testing our new script - Ask Me (FAQ script) - and if you have any question about scripts you can post it HERE.

Multi_Download_Counter v.2.1

Multi_Download_Counter is simple PHP script for counting different downloaded items. This new version is faster, more secure for errors, show total number of downloads and you can instal it on html pages. For old version go here.


Copyright (C) 2005 Wangchuk Sonam
Multi_Download_Counter is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Multi_Download_Counter is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

For newer version check http://www.phoenix.frihost.net/MD_21/read_me.php


            Lighthouses in Croatia
           
           


Features:

1. Counting unlimited number of items
2. Installation on html pages
3. Show total number of downloads

4. Display counted numbers for each download separately
5. Uses Flat File (txt file) and does not need MySQL or any other DB


PHP examples:

 

 

Download examples

Download now

Download now

Download now

Download now

Download now

Download now

Download now

Display examples        

860 people have downloaded this script

627 people have downloaded this script

462 people have downloaded this script

704 people have downloaded this script

ERROR: Id - Wrong! - not exist!

ERROR: Id are missing!

ERROR: Id - Spa ce - contain whitespace!

Comments

// id are numbers - 108

// id are letters - MDC

// id are mixed - MDC108

// id are almost anything

// this id are not existing

// this id are missing

// id contain whitespace

 

19227 total downloads!


Installation:

Extract MD_21.zip in root folder.
In a new subfolder "MD_21" find seven files: display.php, download.php, show.js, data.txt, display.txt, read_me.htm and GNU License.

Customization:

data.txt
In data file type new id, 0 (zero), and path to file separated with | (color is only for discernment). You need one line for each download definition. One line example is below:

MD_21|0|/path/to/file

display.txt
When you fill data.txt just copy/paste all datas in display.txt.

NOTE:
1. Don't put | after path to file, path must start with / and don't remove last line in data.txt and display.txt.
2. Don't forget chmod 666 data.txt and display.txt on some Linux/UNIX servers.

PHP displaying and downloading

For PHP downloading, displaying counter or number of total downloading is necessary only to type effective id from data.txt.

Download example:

<?php
$path = $_SERVER["DOC_ROOT"] . "/MD_21/download.php";
$id = "<a href='$path?id=MD_21'>Download now</a>" ;
echo $id;
?>

Display example:

<?php
$display = 'MD_21';
include $_SERVER["DOCUMENT_ROOT"] . "/MD_21/display.php";
?>

Total example:

<?php
$total = 'total';
include $_SERVER["DOCUMENT_ROOT"] . "/MD_21/display.php";
unset($total);
?>


HTML displaying and downloading

For HTML downloading, displaying counter or number of total downloading follow next steps:
1. insert between <head> and </head> this JavaScript.

<script language="JavaScript" src="MD_21/show.js"></script>

In body section for displaying number of downloading insert this JavaScript. Change id in dependence of what result you want to display.

<script type="text/javascript">
show("MD_21/display.php?id=MD_21")
</script>

For download use link to download.php with id definition e.g.:

<a href = "MD_21/download.php?id=MD_21"> Download now! </a>

For total number of downloading use this script:

<script type="text/javascript">
show("MD_21/display.php?total=total")
</script>

NOTE: All upper examples for HTML is for pages in root folder. If is html page in some subfolder please use right navigation to show.js (in head section), display.php and download.php.

HTML examples

Download now!


That’s all, folks. Have fun!



Multi_Download_Counter v.2.1 is packed in MD_21.zip file (14Kb)  

Download now

974 people have downloaded this script

If you use Multi_Download_Counter and would like to help us please rate it, place a link to us on your website or refer to us in one of good webmaster's forum. Thank you!

If you like our script, please rate it!


Other scripts:

One-page Gallery is a simple image gallery, which show your images with a JPG, GIF or PNG extension. One-page Gallery need only one page on your site, do all stuff dynamically in fly without data bases or thumbs. One-page Gallery is fully customized.
Linkspider allows other webmasters to trade link with your site, check if your link exist on their site and is it your link hidden somewhere in script, comment, etc.
Butterfly online visitor counter is simple PHP script for counting online visitors on your site.
Fisherman's Slide Show is PHP script that resizes and displays your images with JPG, GIF or PNG extension from chosen directory. It is nice and simple way to create presentations or image gallery on your site.
Chameleon PHP script shows randomly, or in dependent on user's local time, different background images or colors.
Hercules Image Rotator is a PHP script, which rotates your images/banners with a JPG (JPEG), GIF, or PNG extension from any location.
Multi_Hit_Counter is PHP script for counting all visitors on different pages.
My_REFERER is PHP script for checking access to favorite web pages (login, contact, etc.).

Please contact us only about possible bug reports, comments or suggestions!


 Home | Contact Us | Partners