title: How do I send the user a message when using php with header for forcing download
body: <p>php application creates a file for user to download, which works perfectly. I want to give user guidance on downloading file and the number of entries in the file. If I include any output after sending the headers nothing is displayed to the user. </p>
  
  <p>I've tried using cookies. Here's an excerpt of code...</p>
  
  <pre><code>...
  header("Content-Type: text/Calendar");
  header("Content-Disposition:attachment; filename=myfile.txt");
  readfile('tempfile.txt');
  ?&gt;
  &lt;html&gt;
  &lt;body&gt;
  &lt;p&gt;The file contained&lt;?php count($VEVENTS)?&gt; events.&lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>