I found on Google some PHP scripts to limit the download speed of a file, but the file download at 10 Mbps or if it download at 80 kbps as i set it, after 5 mb, it stops dow
Downloader class is good but have one problem if you have two downloads at same time, you will lose max_execution_time value.
Some example:
Download first file(size = 1mb; download time 100 seconds )
After one second download second file ( size = 100 mb; dowload time = 10000 seconds)
First download set max_execution_time to 0
Second remeber _oldMaxExecTime as 0
First download end and return max_execution_time to old value
Second download end and return max_execution time to 0