title: How to run an external PHP script silently within a PHP script?
body: <p>For example:</p>
  
  <p>Content of <strong>server-a.com/test.php</strong>:</p>
  
  <pre><code>echo 'hello world one';
  
  // now I need to call server-b.com/test.php here silently
  // without interfering with user experience
  
  echo 'hello world two';
  </code></pre>
  
  <hr>
  
  <p>Content of <strong>server-b.com/test.php</strong>:</p>
  
  <p><code>mail($foo, $bar, $qux); header('location: http://google.com');</code></p>
  
  <hr>
  
  <p>Now running <code>server-a.com/test.php</code> should output <code>hello world one hello world two</code>. And it should not redirect to google.com even though <code>server-b.com/test.php</code> was called successfully.</p>