title: PHP Pass external download to user
body: <p>I was wondering if there was any way in PHP to pass an external download off to a user? What I would like to do with the script is depending on certain conditions, send the user a file from server A or server B. However, I don't want the user to know the direct url to either server.</p>
  
  <p>Ex:
  User visits (which is on server C): <a href="http://example.com/download?id=1234" rel="nofollow noreferrer">http://example.com/download?id=1234</a>
  Server A's Address to file: <a href="http://servera.com/1234.exe" rel="nofollow noreferrer">http://servera.com/1234.exe</a>
  Server B's Address to file: <a href="http://serverb.com/1234.exe" rel="nofollow noreferrer">http://serverb.com/1234.exe</a></p>
  
  <p>Is there a way, that when someone visits <a href="http://example.com/download?id=1234" rel="nofollow noreferrer">http://example.com/download?id=1234</a>, to send them the download of the other servers without giving the user the direct URL? I know I can do a file([external file here]). But I do <strong>not</strong> want all the bandwidth going through server C. Server C is pretty much just a redirect.</p>
  
  <p>Thanks, 
  James</p>