How to to check a php server support for flush?

Hello Everyone

I am working for get flush working on my page,
I took a script, for example:

[code:1]<pre>
<?php

ob_end_flush();

echo &quot;Test1\
&quot;;
flush();
sleep(3);

echo &quot;Test2\
&quot;;

?>
</pre>[/code:1]

It works well on my own server but not in a web hosting.

I have put in .htaccess

[code:1]<IfModule mod_gzip.c>
mod_gzip_on no
</IfModule>[/code:1]

I put flush all HTML up to and including the <body> tag (<head>, <meta>, etc.), the browser won’t respond.

I can’t understand what is still missing.

Anyone can tell me the easiest way to check a php server support for flush?

Thanks in Advance

thanks for provide me this link its really help me

Read the documentation page for flush and you will see that there are many situations that can prevent it from occurring.