I’m working on a shop system, based on this shop (well… most part).
anyway I don’t really have a problem, everything works but I wanted to ask something. I want the direct download link hidden behind another url eg: www.yoursite.com/shop/downloads/542136879this is the code:
header("Content-type: application/$extension"); header("Content-Length: $len"); header("Content-Disposition: inline; filename=".str_replace(' ', '_', $filename).".zip");
that works and it will download a zip, however IE (of course) and chrome download it as a blank document (without the extention, can’t seem to find it)
so what I did (see in the code block) I hardcoded the .zip in the filename and it works in all browsers
is this a bad thing to do?
I don’t see how “hand coding” in ”.zip” is bad.
Unless $extension holds ”.zip”, then just use that.
the shop I’m working on is based on this shop system except that members will not be able to add items but only buy them. and there will be 2 versions available in the download, one with paypal checkout and another which can be added to the deposit script I’ve written http://themeforest.net/item/deposit-system/59753
both are to be integrated in whatever website you allready use. No membership system provided but very easy to integrate. So it’s a bit different from yours
nice work btw