例えば:
server-a.com/test.phpのコンテンツ:
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';
server-b.com/test.phpのコンテンツ:
mail($foo, $bar, $qux); header('location: http://google.com');
現在実行中server-a.com/test.php
はが出力されますhello world one hello world two
。server-b.com/test.php
また、正常に呼び出されたとしても、google.comにリダイレクトされるべきではありません。