title: PHP flushing output as soon as you call echo
body: <p>I thought <code>flush();</code> would work, at least from what Google/Stackoverflow tell me, but on my Windows WAMP (Windows, Apache, MySQL, PHP) system it doesn't work.</p>
  
  <p>Is there some PHP setting I have to set to make flush() work?</p>
  
  <p>Here's my code:</p>
  
  <pre><code>&lt;?php
  echo "Fun";
  
  flush();
  
  sleep(5);
  
  echo "&lt;br&gt;Mo";
  ?&gt;
  </code></pre>
  
  <p>The code just outputs all together when the script is done executing (after 5 seconds).. I don't want this, I want 'Fun' to show up right away, and then after 5 seconds 'Mo'.</p>
  
  <p>I've tried other combinations of flush like <code>ob_end_flush();</code> <code>or ob_implicit_flush(true);</code> but nothing is working. Any ideas?</p>