Jump to content

Flush not working


dpacmittal

Recommended Posts

The following script is working fine on my computer but not on my host:

 

<?php
include('common.php');
ini_set('output_buffering','on');
ini_set('zlib.output_compression', 0);
//ini_set('implicit_flush',1);
ob_implicit_flush();
for($i=0;$i<10;$i++) {
      echo $i;
      echo str_repeat(" ", 500);
      ob_flush();
      flush();
      sleep(1);
}

?>

 

Any idea how I can fix it or find out what the exact problem is so I can troubleshoot with my host?

Link to comment
https://forums.phpfreaks.com/topic/190377-flush-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.