Topic: multiple downloads with download manager (Read 1256 times)
Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6272
38458 credits Members referred : 374
It's time to use PHP5!
« on: May 03, 2007, 06:19:13 PM »
Hi,
I have a problem with file downloads via http and clients using a download manager.
people using settings like multiple channels to download a file faster.
with the result that these downloads eating more bandwidth than the size from a file is there a way to provide only one connection for each IP or something?
I know there are download sites which allow max 2 downloads at the same time. how do they do this?
These days a customers website has generated a large amount of traffic because a client site has offered some “bigger” file downloads to their visitors. Normally there is nothing wrong with this kind of downloads on most of the websites, ...
« Last Edit: May 05, 2007, 08:18:01 PM by Olaf »
Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6272
38458 credits Members referred : 374
You can do this by monitoring who is downloading using a database for it, and allow someone to download only if his/her ip is not in the database.
To make this script accurate you will also need to execute this : (php)
ignore_user_abort(true);
Nick, I created a script using the IP address and a database to check downloads what about this function:
ignore_user_abort(true);
why do I need this?
look people using a DL manager are opening several channels to download a file and after the file is downloaded the other files are only partly downloaded.