I-Am-Bot Code, technology and life

31Jan/099

dScript – php file download counter script

Posted by Srinath

Update: A minor bug, which breaks the (+) icon next to a folder when no files/folders are present in the parent directory fixed. Thanks to Przemysław Kłys for reporting it. Compressed the JS file for smaller package size. Cleaned up a few lines. As usual get it here

After the first releaseof my simple php download counter script, I present a new improved
version! It is a complete rewrite, with a better interface and cleaner
code.Its written in php/javascript/css.

You can watch a demo here.

Minimum Requirements :

A web server that supports php. User should have write permissions to the directory.

Installation Notes :

1. Download
2. Unzip in your webserver http://example.com/path
3. chmod /path/Includes/log to 777
4. Drop files/folders and use!
5. Directly link files as http://example.com/path/download.php?fname=<./path to file>

Features :

1. Tree like listing of all files and folders within the directory.
2. No hassles with changing folders. Just expand the folder, and click on file.
3. No database required. All stats are stored in log file.
4. Icons displayed for most file types.
5. XHTML and CSS valid code.

Tested with Firefox 2,3 Opera, Chrome, Safari, and IE 7.

Bugs :

1. Displaying file size and downloads for nested files is broken. Needs formatting.

Credits :

Read file readme.txt

Terms:

Should work reasonably well on most servers. No guarantees
whatsoever! You can modify and distribute as you like. But please make
sure the readme.txt file is present when you distribute it.

All comments and suggestions welcome. Email : srinath [AT] iambot [DOT] net

Tagged as: , , 9 Comments
31Jan/090

Hello WordPress!

Posted by Srinath

I'm back! After struggling for almost 2 months, I've shifted from habari. Don't get me wrong, its a great blogging system. Just that it isn't suited to my needs. And I'm not ready for it yet, in the sense that I don't have the time or knowledge to fiddle around and fix bugs and plugins that are broken.

I'm still am running a barebones wordpress install, and I recon it will take sometime before I customize it to suite my needs. But first, I need to recreate a few pages so that some external links aren't broken.

Cheers!

Tagged as: No Comments