title: Show a loading message while php is processing followed by a redirect to another page
body: <p>I am trying to write a page in php which shows a loading message while it does some processing and then auto redirects to another page</p>
  
  <pre><code>&lt;?php
      //show a loading message - this is the bit I need help with
      // do some processing - don't need help with this bit
      header("Location: http://www.mysite.com/mynextpage.php");
      exit;
  ?&gt;
  </code></pre>
  
  <p>I can't use echo or javascript otherwise I get a "Cannot modify header information - headers already sent" error when the page executes.</p>
  
  <p>Any clues?</p>