Allora. Lo script funziona (in locale) con Apache per Windows e con Firefox. Per IE bisogna mandare un minimo di 'tot' caratteri perché funzioni. Con 256 non funzionava. Con 1024 o 2048 o 3072 funziona a scatti e con 4096 sembra funzionare correttamente.
Codice PHP:
<?php
header( 'Content-type: text/html; charset=utf-8' );
echo 'Begin6 ...<br />'.PHP_EOL;
for( $i = 0 ; $i < 10 ; $i++ )
{
echo '<!--'.str_repeat("x", 2048).'//-->'.PHP_EOL; // Da aggiungere per IE
echo $i . '<br />'.PHP_EOL;
flush();
ob_flush();
sleep(1);
}
echo 'End ...<br />'.PHP_EOL;