PHP mark output finished
<p>I'm participating in a development of a php program and we are trying to improve its performance in stuff like:</p>

<p>Execute, finish output to the user, do scheduled stuff.</p>

<p>The objective here is to send information to apache, IIS, etc... Stating that the information about all is done can be sent to the browser. Because the way things work in this program, it's supposed not to cache all output, measure it and then output, it's supposed to output information as it is being processed, as soon as possible, so ob_* functions is not exactly an option.</p>

<p>How can I accomplish that? I can only find an option for this when using output buffering...</p>

<p>Note: curl is also not an option. Some servers in which this is supposed to work have it disabled.
Same for the other common stuff, shell_exec(), exec(), etc...</p>
