title: A bypass server php code to download file from another server
body: <p>My situation is illustrated in the figure below:</p>
  
  <p><img src="https://ibin.co/2IhKmXgxoJf3" alt=""></p>
  
  <p>I have a <strong>file X</strong> on the <strong>main server A</strong> which I want to download from my <strong>local computer B</strong> and the file X is downloadable through HTTP. But, for some reason I am not allowed to download file from the <strong>main server A</strong>. However, I have an access to <strong>another server C</strong> which has PHP installed.
  I now want to download the <strong>file X</strong> via the <strong>server C</strong> by calling some PHP script on <strong>server C</strong> from my <strong>local computer B</strong>.</p>
  
  <p>Is it possible to write one <strong>PHP script</strong> to do the above?</p>
  
  <p><strong>Any help in writing so</strong> will be highly appreciated.</p>