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?
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?
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