Programming and Webmasters forum
HomeSearchRecent PostsLoginRegisterContact Us

Username  
Password

Pages: [1]   Go Down
 
  Email this topic  |  Print
0 Members and 1 Guest are viewing this topic.

How to to check a php server support for flush?

 
webmaster forum
 
New Poster
Posts: 8
Topics: 5
May 20, 2010, 02:38:14 AM

Hello Everyone

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

Code:
[code:1]<pre>
<?php

ob_end_flush();

echo "Test1\n";
flush();
sleep(3);

echo "Test2\n";

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

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

I have put in . htaccess
Code:
[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

UK Website Design Company for custom Ecommerce website development and open source customization.
 
  Email this topic  |  Print
Pages: [1]   Go Up
 
Jump to:  



Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC


Google visited last this page September 06, 2010, 07:22:59 AM