ad

Wednesday, 6 May 2015

Allow people to download your content with ease! Just upload and you're done!

Sometimes you want to just drop it into your website directory and allow people to download the files. Well this is exactly what this script will do. All you have to do is, make a folder named "uploads", write this in  your main file(ofcouse upload the "dynamic_download_class.php" file too),
include("dynamic_download_class.php");
$show_files = new Show_files("uploads");


..and you're good to go. I uploaded a few file to give you an idea of what this script does exactly.












I uploaded couple files to my "uploads" folder and it started displaying those files while allowing them to be downloaded by users.

Download:
https://dl.dropboxusercontent.com/u/28490184/webdevtown/dynamic_download_class.php

No comments:

Post a Comment