I'm trying to get PHP flush working for 2 hours, i can't make it work, in localhost it work, but when i drag it on server it stop working. The code is this:
<?php
ob_implicit_flush(true);
ob_end_flush();
for ($i=0; $i<5; $i++) {
echo $i.'<br>';
sleep(1);
}
?>
I tried a lot of other versions, but all the version i fond work only on localhost (as this), but not on my server, i read somewhere that it would be fixed changing some lines on the php.ini file, but i'm using an Aruba hosting windows domain, so i can't edit the php.ini, how can i do?
Update: I tried it on others two free hosting serice, and it work on them, it's just my main hosting services that do problem: what can it be?
Update: Since a lot of script i found use ini_set I tried to check values that they set, i don't know if they can be useful:session.use_trans_sid 0
output_buffering 4096
zlib.output_compression Off