stublackett Posted January 21, 2008 Share Posted January 21, 2008 Hi, Been trying to create a PHP File which allows a force download Any ideas on the best bit of code to use, Or coding to produce this? I know you can hot link the file, Straight off and download from there, But I've seen a lot of scripts that have file="download" Any ideas on the best way to utilise this? Or the best PHP Script to do this? Quote Link to comment https://forums.phpfreaks.com/topic/87030-force-download/ Share on other sites More sharing options...
adam291086 Posted January 21, 2008 Share Posted January 21, 2008 I used http://elouai.com/force-download.php and it works like a dream Quote Link to comment https://forums.phpfreaks.com/topic/87030-force-download/#findComment-445051 Share on other sites More sharing options...
Daniel0 Posted January 21, 2008 Share Posted January 21, 2008 http://www.phpfreaks.com/forums/index.php/topic,95433.0.html Quote Link to comment https://forums.phpfreaks.com/topic/87030-force-download/#findComment-445070 Share on other sites More sharing options...
stublackett Posted January 21, 2008 Author Share Posted January 21, 2008 I used http://elouai.com/force-download.php and it works like a dream Thanks for that, Great script Is there any way I can remove the %20 (Space) from the force download? Quote Link to comment https://forums.phpfreaks.com/topic/87030-force-download/#findComment-445114 Share on other sites More sharing options...
Daniel0 Posted January 21, 2008 Share Posted January 21, 2008 By not having a space in the filename? You shouldn't refer to the filename in the URL though, but rather as an ID which you can then get the path of using a database of some sort. Quote Link to comment https://forums.phpfreaks.com/topic/87030-force-download/#findComment-445120 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.