Jump to content

PHP downloads manager.


chetanmadaan

Recommended Posts

Hi -

 

we have been using google code to host our open source projects till now and they get a lot of downloads too.. Google code is going to stop offering downloads starting Jan 2014 and we want an alternate.

 

We have enough bandwidth to host the download our self... but just need some help finding out the right too.

 

the most important thing is that we need to offer direct downloads to our zip files... most of the scripts we find online are really in a manner that the download has to be router through php.

 

is there a script of function out there that can do this job for us?

Link to comment
Share on other sites

You don't need a script to offer up downloads unless you want to do some kind of stats tracking. You can just link directly to your zip files and they will be downloaded.

 

If you do want the stats tracking, but want your links to still appear as if they are going directly to the zip file rather than something like download.php?file=blah then you'll need to create some mod_rewrite rules to redirect the zipfile requests to the download script.

 

As far as the actual download script goes, you can either use one of the scripts you said you found if there was one you liked, or write your own simple one using header and readfile along with whatever form of stats tracking you choose to implement.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.