PHP proxy - return response in case of error
<p>I use PHP as proxy (for JS XMLHttpRequest).</p>

<p>In the following code:</p>

<blockquote>
  <p>handle = @fopen(...);</p>
  
  <p>if (!$handle)<br>
  {</p>
  
  <p>,,,</p>
  
  <p>}</p>
</blockquote>

<p>I want to return the response (header + body) from the server in case i enter the IF.</p>

<p>How can i do that?</p>
