title: Will PHPs fopen follow 301 redirects?
body: <p>We have a piece of legacy code that (ab)uses <code>fopen()</code> calls to resources over HTTP: </p>
  
  <pre><code>@fopen('http://example.com')
  </code></pre>
  
  <p>We want to move example.com to another host and then send "301 Permanently Moved", however, we are not entirely sure if <code>@fopen()</code> will follow this. </p>
  
  <p>Initial tests show me that it does not. But maybe I miss some configuration piece. </p>