I'm using the following code to produce buffered output on a db maintenance script:
function flush_buffers($string){
echo $string;
ob_end_flush();
ob_flush();
flush();
ob_start();
}
While this works as expected on my local Wamp server, showing output each time the function is invoked, it doesn't on the online web server: here the output is sent only once the script has ended. How is that?