flush()
「Internet Explorer」を使用した HTML テーブルに問題があります。次のコードを編集して、テーブルに「リアルタイム」エコーを表示するようにしました。「Internet Explorer」では機能しないため、タグの後flush()
にflush()
呼び出しを追加しましたが、</table>
サイクルはテーブルに入り、他の人は外に出ます。何か助けはありますか?
<html lang="en">
<head>
</head>
<table border='1'>
<tr>
<td>
<?php
$total = 10;
for($i=1; $i<=$total; $i++){
echo "sometext";
//other stuff
?>
</td>
</tr>
</table>
<?php
echo str_repeat(' ',1024*64);
flush();
sleep(1);
}
?>
</body>
</html>