File Download Script
September 19th, 2006 – Category: Scripts –
This file downloading script will allow you to set up a download area on your website which links to files which don’t exist physically on the site. Rather, the files to be downloaded can exist in an alternate location. It is actually the system in use right on this page for downloading these files.
Click here to read more about the person who created these resources and is offering them for you to use.
Requirements: PHP
Download: Click Here
Website Hosting
If you’re looking for somewhere to host your own web creation, we would highly recommend DreamHost. Offering 167 Gig’s of storage space, 1.6 TB of bandwidth, PHP, MySQL and a host of other features, they’ll most likely be more than adequate for your website needs. And with a 97 day money back guarantee you can’t go wrong! Visit DreamHost for more information about what they offer.
And now, we’re offering $50 OFF coupons as a special benefit to our website visitors. Click here for more information.
Related Books:
14 Responses to “File Download Script”
Feedback
Related Entries
Links:
Other Information:
Programming Related
Articles we've written related to the topic of PHP Programming.
- PHP Object Unit Testing
(June 5th, 2009 – Comment on This) - Link Directory Plugin Work
(April 8th, 2009 – Comment on This) - WordPress Plugin: Related Products from Amazon.com
(November 24th, 2008 – Comment on This) - SendFeed WordPress Plugin
(November 19th, 2008 – Comments Off) - FormContact 1.1 with PHP5 Support
(June 24th, 2008 – Comment on This)
Website Development Tips
Tips and strategies related to the development of great websites.
- Captcha Insanity?
(June 18th, 2009 – Comment on This) - PHP Object Unit Testing
(June 5th, 2009 – Comment on This) - FormContact 1.1 with PHP5 Support
(June 24th, 2008 – Comment on This) - Website Subversion Backup
(April 8th, 2008 – Comment on This) - New Webmaster Tool - The Regular Expression Editor
(June 15th, 2007 – Comment on This)
General Information & Resources
General information and resources from WarkenSoft Productions.
- Is AmazonFeed Making You Money?
(February 24th, 2009 – One Comment) - New Webmaster Tool - The Regular Expression Editor
(June 15th, 2007 – Comment on This) - Where to Start with a Website
(March 19th, 2007 – Comment on This) - About the Owner of WarkenSoft Productions
(March 7th, 2007 – Comments Off) - Site Downtime
(February 25th, 2007 – Comment on This)
Teach Yourself Beginner's Hindi Script
Hypnotherapy Scripts 2nd Edition
Script and Scribble: The Rise and Fall of Handwriting
December 7th, 2006 at 3:55 pm
I’m trying out your dl.php script but having problems. Will not find file. I’ve hard-coded the location to be sure. Simply tells me the file doesn’t exist. Any suggestions?
http://www.ChristianImageLibrary.com/dl.php?filename=frost.zip
December 19th, 2006 at 10:06 am
I am having the exact same issue as Rick. It cannot find the file to be downloaded. The scrit is in the site root in a folder of its own, the files are in a seperate folder in the root as well (for purposes of testing the script), so the path should be:
$download_path = “$DOCUMENT_ROOT/folder_containing_files”;
The files in the secure folder are such as:
newsletter.pdf
somearchive.zip
What are we doing wrong here? Please help.
Thanks
December 19th, 2006 at 11:34 am
Hey guys,
Thanks for trying the product. I suspect that the problem you are encountering may be related to how some PHP installs handle global variables. I’ve modified the code in the download slightly to account for this. You can also modify your own installations to use the following download path:
$download_path = $_SERVER['DOCUMENT_ROOT'] . “/folder_containing_files”;
Thanks for letting me know about the problem.
December 26th, 2006 at 11:34 am
Hey James,
Can the download path be set to a URL? I don’t want to use a path because of securty issues and some of the files will be on a different server that where the script is installed. Thanks
February 20th, 2007 at 7:55 pm
Thanks for the script, just wish I could get it to work. All I ever get is “I’m sorry, the file doesn’t seem to exist.”
Has anyone gotten this script to work?
March 5th, 2007 at 8:40 pm
sorry guys… I downloaded it. installed it and it worked fine first time.
Thanks for the script!
March 5th, 2007 at 8:46 pm
Perhaps it’s the PHP install?
Server Type FreeBSD
Web Server Apache v1.3.37 (cgi)
PHP 4.4.4
March 10th, 2007 at 6:58 am
i have a collection of titles all go from 1 to 54
eg old download path
/Cds/1.rar
/Cds/2.rar
dl.php?filename=1.rar | 2.rar | 3.rar
is there anyway of randomizing the download link or somat like that.
March 17th, 2007 at 7:47 am
Hi James! Your script rocks!! works perfectly for me…
Thanks a lot!!
July 11th, 2007 at 10:24 am
http://www.warkensoft.com/dl.php?filename=fileDownload.zip doesn’t work
July 11th, 2007 at 10:34 am
Hi Richard,
Thanks for pointing it out. We just upgraded to a new server and the download script was broken. It has now been fixed.
November 16th, 2007 at 4:18 am
This small change allows for spaces in your file names.
header(’Content-Disposition: attachment;filename=”‘.$filename.’”‘);
November 21st, 2007 at 11:09 am
Nice script, not overloaded with useless features. But…
You should escape filename in the script. Currently script opens whole site for hacker attack.
You could also add hotlinking protection, like it is done in the following script
http://www.zubrag.com/scripts/download.php
This would make your script even more powerful.
May 21st, 2008 at 1:00 pm
Can’t see how this script would work with files on a remote server?