Page 1 of 1

PHP Utilities for Puppy Download Sites: index and md5sum

Posted: Sun 27 Apr 2008, 14:32
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.