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? 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 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 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? 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. Link to comment https://forums.phpfreaks.com/topic/87030-force-download/#findComment-445120 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.