since two days i'm trying to stop the buffer on my server, i disabled the output_buffering
in php.ini
i checked it was disabled with phpinfo()
.
Under xampp(Localhost) it works like a charm, same testing code(below), the code runs without waiting for everything to be finished, no buffer, a dream =)
On my server the output_buffering
show me No value
in phpinfo()
so i think it's disabled, but still it's not workingn i need to wait until the loop finish his work, anyway to make this work like on my xampp config ? thanks !
testing code here :
for($i=1; $i<=5000; $i++){
echo $i."<br>";
flush();
usleep(1000);
}
ps : i tested with php 5.6 & php7 on Debian and Ubuntu, my xampp is naturally running on windows(10)