title: Header Footer in HTTP Header : PHP to Word file
body: <p>I use following HTTP Header to get a Word Document from a PHP file.</p>
  
  <pre><code> &lt;?php
   header("Content-type: application/vnd.ms-word");
   header("Content-Disposition: attachment;Filename=document_name.doc");    
   echo "&lt;html&gt;";
   echo "&lt;meta http-equiv=\"Content-Type\" content=\"text/html; 
                                                 charset=Windows-1252\"&gt;";
   echo "&lt;body&gt;";
   echo "&lt;b&gt;My first document&lt;/b&gt;";
   echo "&lt;/body&gt;";
   echo "&lt;/html&gt;";
   ?&gt;
  </code></pre>
  
  <p>I would like to have Header and Footer &amp; Page Break in the resulting Document.</p>
  
  <p>Help to fix it..</p>