title: Docx to HTML using phpdocx
body: <p>I'm having troubles with transforming .docx to html...
  I'm using <a href="http://www.phpdocx.com/download" rel="nofollow">PHPDOCX FREE</a> to handle this problem...
  I have some problems with it and I was able to determine where the problem was..
  it's in the next piece of code:</p>
  
  <pre><code>$xmlDOM = new DOMDocument();
  $xml = str_replace('&lt;/w:wordDocument&gt;', '', $xml);
  $xml = preg_replace(
    '/(&lt;w:wordDocument)+(.)*(&gt;&lt;w:body&gt;)/', '&lt;w:body&gt;', $xml
   );
  </code></pre>
  
  <p>escpecially in the 'preg_replace' function...
  it's making the server so busy... so I can't work anything until I restart the server...</p>