read word document in php
<p>I'm doing a project now, and I'm stuck with reading word documents.</p>

<p>Word File content.</p>

<pre><code>This is a test word file in PHP.

Thank you.
</code></pre>

<p>PHP code.</p>

<pre><code>    $myFile = "wordfile.docx";
    $fh = fopen($myFile, 'r');
    $theData = fread($fh, 1000);
    fclose($fh);
    echo $theData;
</code></pre>

<p>output:</p>

<pre><code>PK!éQ°Â[Content_Types].xml ¢( ´”MOÂ@†ï&amp;þ‡f¯¦]ð`Œ¡pP&lt;*‰Ïëv
 «Ýì,_ÿÞiI¡(ziÒNß÷}fÚÞ`©‹h•5)ë&amp;‘6Sf’²×ñc|Ë"Âd¢°R¶dƒþåEo
 ¼r€© ¦l‚»ãå´ÀÄ:0TÉ­×"Ð­Ÿp'ä§˜¿îtn¸´&amp;€  q(=X¿÷¹˜!.éñ
 š„ä,º_¿WF¥L8W()ò²Êu &lt;"œ›l.Þ%¤¬Ìqª^Nøp0ÙKPºl­*Õ3Ó
 «¢‘ðáIhbçë3žY9ÓÔwr¼¹F›çJB­/Ýœ·é;é"©+Z(³e?ÈaUþ=ÅÚ÷Ä
 ø7¦Ã&lt;I?Hû&lt;4ÆeÓÉ:bGÛž!ÐN    ùþÛÆmCÇs+ÂÞ_þbÇ¼$§ó4ïœ
 0ñ£¶n…´#€W×îÙ•Í±H:#oÒÎñ¿h{»JuLGÎ êõÐtÄêDZXg÷åFÌ kÈæÕîÿÿPK
 !ÇÂ'¼ß_rel
</code></pre>

<p>IS there anyway to read the word document in PHP ? </p>
