genu Posted November 3, 2008 Share Posted November 3, 2008 Is there a compatible solution (php4 & 5) that would enable me to generate download links to mp3, avi, wmv, etc. That would display a download dialog on click rather than open with the associated program? Link to comment https://forums.phpfreaks.com/topic/131257-download-links-that-dont-open-directly/ Share on other sites More sharing options...
Yesideez Posted November 3, 2008 Share Posted November 3, 2008 There is a way as I've experienced it on other sites in the past but to be honest, I've no idea how exactly although I can only presume it is relating to the header() function within PHP. I'm sure someone will be able to explain which parameters need to be passed - I'm quite interested in this as well. Link to comment https://forums.phpfreaks.com/topic/131257-download-links-that-dont-open-directly/#findComment-681537 Share on other sites More sharing options...
xtopolis Posted November 4, 2008 Share Posted November 4, 2008 search "force download" on these forums Link to comment https://forums.phpfreaks.com/topic/131257-download-links-that-dont-open-directly/#findComment-681768 Share on other sites More sharing options...
haku Posted November 4, 2008 Share Posted November 4, 2008 I've used this script in the past and found it to be the best of the many I have tried. http://w-shadow.com/blog/2007/08/12/how-to-force-file-download-with-php/ Link to comment https://forums.phpfreaks.com/topic/131257-download-links-that-dont-open-directly/#findComment-681838 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.