I used the code below to turn off the buffering but it doesn't work. When I call the code from the browser it supposed to show START at first and then wait for 5 seconds and then show END. But the browser doesn't display anything for 5 seconds and then show START and END at the same time. When I tested the code on a Windows based system it works great but it works as I said on Apache server. Also the code works great at the command line. Does any body knows what the problem is?