dScript – A simple php download counter

Posted on July 2, 2008. Filed under: Open Source, Technology | Tags: , , , , |

This version is stale. Get a more recent version here

My first experiment with php – dScript is a very *basic* file download counter in php. It uses text file for logging, thus eliminating the need for setting up mysql tables. Although this is the first release, i’ve tested it as much as possible. Please report any bugs so that i can work on it. You are welcome to make any modifications to the script.


1. Get the zip file from here

2. Unzip it in your download folder.

3. Set permission of log.txt to 777 (globally writable)

4. Drop your files in the folder.


1. Cannot browse through internal folders.

2. Folders within the download directory are not listed.

3. Does not work on files with space in the filename.


Tested on IE 7, Opera 9.5 and Firefox 3


I am NOT responsible for any damage to your property/files/servers/hamsters. This is purely experimental. I will try my best not to make weapons of mass destruction anymore.


Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

3 Responses to “dScript – A simple php download counter”

RSS Feed for Restless Chatter Comments RSS Feed

nice script but is it possible to paginate pages because if i upload 10000 files in directory the script will list all files on one page 😦

A newer version with directory listing is out!

[…] the first releaseof my simple php download counter script, I present a new improved version! It is a complete […]

Where's The Comment Form?

Liked it here?
Why not try sites on the blogroll...

%d bloggers like this: