Use this script when you want to force an user to download content. Some content (jpg, pdf, etc) will show under normal circumstances inside the browser. This script will force the user to download the content.
This biggest problems with most of the force download script on the Internet is security. Creating such a script can cause a big security threat to your server. This script allows you to set restrictions for the downloaded file. The script can restrict the downloads by path(s), extension(s), mime type(s) and syntax based on regular expressions. Feel free to try it. It has been published under MIT license.