I'm developing an app where users send a link to a PHP scripts that passes the link to a server which downloads the file. My thoughts were for the downloading server to have another PHP scripts which handles the downloading but I'm not sure what the best route would be.

The downloading application need to support the following:

  1. Files sizes upto 4gbs
  2. Ability to resume download on error
  3. Needs to handle multiple downloads at one time.

Thanks for your time!