title: Codeigniter view show progress
body: <p>I am using Codeigniter and want to show progress of XML import.
  but issue i am facing is
  When view load, it stuck on loading (blank page) and when i can see view its shows 100% done.</p>
  
  <p>my code as bellow</p>
  
  <pre><code>$i=0;
  $count=sizeof($record-&gt;List);
  foreach($record-&gt;List as $Item)
  {
  $i++;
  echo "processing ".$i." of ".$count;
  
        ---processing code which takes times to process---
        ---processing code which takes times to process---
  
  
  }
  </code></pre>
  
  <p>this code is in view but when i click on link to load this view, i have to wait for all process to complete and then i can see view when all process is done.</p>
  
  <p>what i want is:</p>
  
  <ol>
  <li><p>Show view (empty).</p></li>
  <li><p>Then keep on printing each line as loop go.</p></li>
  </ol>
  
  <p>Thanks</p>