Q: How change word orientation with php in html? I have create a word document to use this method
  <?php
        $word= "";
        $word  .= "<h2 style='font-family: Arial;'>My title</h2>";
        $cleanContent = utf8_decode($word);
    file_put_contents("mynewworddocument.doc",$cleanContent,LOCK_EX);
   ?>

I have 2 questions. 
1.- With this process it's possible to change the orientation page(landscape or portrait)?
2.- It's possible to create a page break? If yes, how? 
Thank's

A: As the commenters have already mentioned, you are not creating a real word document. This is also not as easy as you might think. But for your luck, there are cracks out there that solve such problems. For example PHPWord: http://phpword.codeplex.com/ | https://github.com/PHPOffice/PHPWord/
If you really want to create a .doc word document, try to use that library.
