header() を使用すると、srcipt の実行が終了した後に拒否されました。インクルードと同じで、html を使用してそこに php を配置しても、php の終了後に iframe が機能します。
<?php
header("Location: localhost/index.html");
sleep(120);
doSomethingUsefull();
?>
index.html が 120 秒後にビルドされる前のサインとして。何かを含めてレディクテットを取得し、スクリプトの実行を継続できる他の方法はありますか?