steviez Posted February 13, 2007 Share Posted February 13, 2007 Hi, I am wanting to offer my users the option to download an mp3 track from my site, currently if you click to download it just opens th track in mediaplayer. Is there a way to zip files on the fly with php? Thanks Link to comment https://forums.phpfreaks.com/topic/38384-is-there-a-way/ Share on other sites More sharing options...
fert Posted February 13, 2007 Share Posted February 13, 2007 yes it is possible Link to comment https://forums.phpfreaks.com/topic/38384-is-there-a-way/#findComment-184016 Share on other sites More sharing options...
trq Posted February 13, 2007 Share Posted February 13, 2007 Read here. Link to comment https://forums.phpfreaks.com/topic/38384-is-there-a-way/#findComment-184017 Share on other sites More sharing options...
steviez Posted February 13, 2007 Author Share Posted February 13, 2007 Read here. This is perfect, but how do i get it to work when the link is clicked and not when the page loads? Link to comment https://forums.phpfreaks.com/topic/38384-is-there-a-way/#findComment-184028 Share on other sites More sharing options...
trecool999 Posted February 13, 2007 Share Posted February 13, 2007 Read here. That's good, but some browsers don't support it. Just giving you the facts. Link to comment https://forums.phpfreaks.com/topic/38384-is-there-a-way/#findComment-184033 Share on other sites More sharing options...
steviez Posted February 13, 2007 Author Share Posted February 13, 2007 any other suggestions? Link to comment https://forums.phpfreaks.com/topic/38384-is-there-a-way/#findComment-184037 Share on other sites More sharing options...
trq Posted February 13, 2007 Share Posted February 13, 2007 read the comments at the top of the script. Simply place the script in a file called download.php, then pass the file you wish to download with it via the url. The only other way to do it is to have your users right click and Save As. Link to comment https://forums.phpfreaks.com/topic/38384-is-there-a-way/#findComment-184051 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.