title: Php Command Line Output on the fly
body: <p>I am writing a command line php script which does some output to the console window, its all look good only issues is when i type</p>
  
  <pre><code>php myfilename.php -....
  </code></pre>
  
  <p>in the console window, ONLY AFTER its fully executed it outputs the result to the window ..</p>
  
  <p>Wht i want is to do this on the fly like below</p>
  
  <pre><code>customer id: 1223 skipped.
  customer id: 22233 added..
  </code></pre>
  
  <p>...etc</p>
  
  <p>another question is adding \n\r to the printf functions didn't go to a new line ...</p>
  
  <p>any idea on these issues..</p>