title: Using PHP create a Word document in Landscape
body: <p>I use this code to create a MS Word document; however, I want to make it in landscape. Does anybody know how to it? Thanks</p>
  
  <pre><code>$fp = fopen('test.doc', 'w+');
  
  $str = "&lt;html&gt;&lt;body&gt;Content&lt;/body&gt;&lt;/html&gt;";
  
  fwrite($fp, $str);
  fclose($fp);
  </code></pre>