|All requests||>||What is the best PHP download class?||>||Request new recommendation||>||Featured requests||>||No recommendations|
by Nguyen Tung - 5 years ago (2015-04-28)
I need to create link to download for a given file.
1. by Dave Smith - 5 years ago (2015-04-29) Reply
Are you looking to obscure the files location on the server or just force the download of a file type that normally would be processed or displayed?
This class will allow you to download the file you tell it in code. The file can be placed in a folder that is not accessible via web, and still be downloaded with this class. It is super easy to use as well. I hope this helps you.
This may be more than you are after, it utilizes a security layer to prevent unauthorized downloads. It also provides different methods for making the file available to the public.