I'm having troubles with transforming .docx to html... I'm using PHPDOCX FREE 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:
$xmlDOM = new DOMDocument();
$xml = str_replace('</w:wordDocument>', '', $xml);
$xml = preg_replace(
'/(<w:wordDocument)+(.)*(><w:body>)/', '<w:body>', $xml
);
escpecially in the 'preg_replace' function... it's making the server so busy... so I can't work anything until I restart the server...