PHP Utilities for Puppy Download Sites: index and md5sum

A home for all kinds of Puppy related projects
Post Reply
Message
Author
raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

PHP Utilities for Puppy Download Sites: index and md5sum

#1 Post by raffy »

Puppy makes downloading easy because of its small files, but many times the files could be modified during uploading or during transfers in server storage. There should be a way for both author and user to track the md5sum of files before and after uploading/downloading.

In this plan, the author uploads an md5.txt file with the same starting name as the main file. After the upload, he can verify the md5sum by clicking on a link given by the index.php script..

Users will have 2 md5sums available to them before downloading: the author's uploaded md5.txt file and the clickable md5sum at the server. S/he should not continue with the download if the md5sums are different. (The author should provide an email address for notification in case of problems.)

I have long ago felt the need for this script because of problems in the minipup download site. However, tempestuous' recent giving of URL to his download folder made the writing of the script urgent - users should be able to view tempestuous' packages in that folder. Hence, the scripts bear tempestuous' name.

Your suggestions are welcome, especially concerning security issues. Note that I did not include filesize in the script, as this could produce heavy load at the server side.
Attachments
download-utils-php.zip
PHP scripts for download sites (index and md5sum).
(1.44 KiB) Downloaded 315 times
Puppy user since Oct 2004. Want FreeOffice? [url=http://puppylinux.info/topic/freeoffice-2012-sfs]Get the sfs (English only)[/url].

Post Reply