How to empty PHP buffer during execution

2

I've seen somewhere a code that configures PHP to empty the Buffer (go on-screen printing) while running script without needing to wait execution for something to be displayed.

Has anyone seen or known what this command is?

    
asked by anonymous 01.09.2015 / 16:08

1 answer

3

The method you're looking for is ob_flush .

It is also possible, instead of releasing the buffer from time to time, to output the buffer whenever a echo occurs with:

ob_implicit_flush(true);

Finally, you can configure directly in php.ini :

implicit_flush = Off
    
01.09.2015 / 16:24