Serving Downloads without readfile or mod_xsendfile ?
Posted: Wed Apr 04, 2012 6:51 am
Hello!
I have quite a webprogramming problem I addressed at various places on the web, but there seems to be no real solution. So I try it here and maybe somebody can help me.
What I want to do:
I want to build a webshop for my own music. It should be buyable in form of single MPĀ§ files as well as RAR archives for complete albums. Once the customer has payed for the items, he should find download links in the "My Downloads" section of his account. He should be able to redownload the files as many times as he wishes. For obvious reasons, I don't want to give direct links to the files
The situation:
My hoster has a timelimit for PHP scripts of 2 minutes. This may be fine for single MP3s on a good internet connection. But if one has a slower internet connection or the download is a RAR album with about 95 MB size, the download will break after 2 minutes. A solution for this problem would be to use the Apache module mod_xsendfile, but the hoster refuses to activate it for my shared hosting package.
Question:
Does anybody have an idea how to still solve that problem? Please don't tell me stuff like "Switch the hoster", because I have just renewed the contract term. Yeah, I didn't know about those shortcomings of the hosting package. So is there a way to get the stuff I want done?
Thanks very much for any help and excuse my lousy english, I'm german
Sonny
I have quite a webprogramming problem I addressed at various places on the web, but there seems to be no real solution. So I try it here and maybe somebody can help me.
What I want to do:
I want to build a webshop for my own music. It should be buyable in form of single MPĀ§ files as well as RAR archives for complete albums. Once the customer has payed for the items, he should find download links in the "My Downloads" section of his account. He should be able to redownload the files as many times as he wishes. For obvious reasons, I don't want to give direct links to the files
The situation:
My hoster has a timelimit for PHP scripts of 2 minutes. This may be fine for single MP3s on a good internet connection. But if one has a slower internet connection or the download is a RAR album with about 95 MB size, the download will break after 2 minutes. A solution for this problem would be to use the Apache module mod_xsendfile, but the hoster refuses to activate it for my shared hosting package.
Question:
Does anybody have an idea how to still solve that problem? Please don't tell me stuff like "Switch the hoster", because I have just renewed the contract term. Yeah, I didn't know about those shortcomings of the hosting package. So is there a way to get the stuff I want done?
Thanks very much for any help and excuse my lousy english, I'm german
Sonny