|
Posted by dkruger on 08/09/07 13:41
On Aug 9, 8:13 am, ZeldorBlat <zeldorb...@gmail.com> wrote:
> On Aug 9, 9:03 am, piyush <piyush.pla...@gmail.com> wrote:
>
> > i have to show the contents of a word document
> > i tried readfile() but that shows many binary characters of word
> > document which looks odd
> > plz suggest me any idea to show content of a word document just as
> > Google Docs & Spreadsheets shows after uploading a word document on
> > the fly.
>
> > plz help me its urgent suggest any way
>
> You get a bunch of binary characters because Word files are binary --
> not text.
>
> You can probably use the COM functions to do this:
>
> <http://www.php.net/com>
If you add the line header("Content-type: application/msword"); prior
to outputting any other info to the screen it shoudl work as desired.
Hope it helps.
Thanks,
David
Navigation:
[Reply to this message]
|