Showing PHP output continuously?
<p>I have a script that runs for like 1 hour.
I have 2 webhosts, in one of them, I can see the output in realtime, (it loops a million times and echoes stuff) while on the other webhost, I have to wait until the script is finished running before I see any output at all.</p>

<p>How can I change the settings to show the output in realtime? I guess this is a php.ini thing.</p>

<p>Adding code: This code will output while executing in the first server, but not in the second server. Additional info, if i put the value of 1015 lower, the first server waits with outputting. So it seems that my first server is flushing every 1015 characters, while the second does not.</p>

<pre><code>while ($a++ &lt; 5) {
  $b = 0;
  while ($b++ &lt; 1015) {
    echo "H";
  }
  echo "&lt;br&gt;&lt;br&gt;\n";
  sleep(1);
}
</code></pre>

<p>On my second server, output buffering is off, and i tried turning on implicit_flush to no avail.</p>
