如何使下载链接通过代理? PHP

I have a proxy (IP + Port) and a file located on a different server.

I need people to download this file but through my proxy. The problem is, I don't want people to need to do stuff on there browser...

How do I do that?

Thanks! If you didn't understand something please ask.

Just do this:

Get the link:

$contents=file_get_contents("link-to-file");

put the contents:

file_put_contents("a temp path-with-file-type",$contents);

take user to the file:

header("location:your-temp-path-here");

probably is not the best way, but it works...

Also, if you're planning to make it slightly dynamic by using $_GET or $_POST for the link, you should be aware; that opens up a serious security hole and you should not do it.