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/542136879
this 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. 
http://themeforest.net/item/membersitems/49975![]()
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 
Oh cool. Good luck! 
Oh cool. Good luck!![]()
thanks
I’ve you want to have a look at it -> http://cmstutorials.org/shop/index/
the first 3 categories are cats I’m going to use and the 2 others is me testing in the admin panel adding categories and subcategories (which works)

