title: How do you display a formatted Word Doc in HTML/PHP?
body: <p>What is the best way to display a formatted Word Doc in HTML/PHP?</p>
  
  <p>Here is the code I currently have but it doesn't format it:</p>
  
  <pre><code>$word = new COM("word.application") or die ("Could not initialise MS Word object.");
  $word-&gt;Documents-&gt;Open(realpath("ACME.doc"));
  
  // Extract content.
  $content = (string) $word-&gt;ActiveDocument-&gt;Content;
  
  echo $content;
  
  $word-&gt;ActiveDocument-&gt;Close(false);
  
  $word-&gt;Quit();
  $word = null;
  unset($word);
  </code></pre>