title: How to get the number of pages in a Word Document on linux?
body: <p>I saw this question <a href="https://stackoverflow.com/questions/1156761/php-get-number-of-pages-in-a-word-document">PHP - Get number of pages in a Word document</a> . I also need to determine the pages count from given word file (doc/docx). I tried to investigate phplivedocx/ZF (@hobodave linked to those in the original post answers), but I lost my hands and legs there. I can't use any outer web service either (like DOC2PDF sites, and then count the pages in the PDF version, or so...).</p>
  
  <p>Simply: Is there any php code (using ZF or anything else in PHP, <strong>excluding COM object or other execution-files, such 'AbiWord'</strong>; I'm using shared Linux server, without <code>exec</code> or similar function), to find the pages count of word file?</p>
  
  <p><strong>EDIT:</strong> The word versions that about to be supported are Microsoft-Word 2003 &amp; 2007.</p>