Posted by Jerry Stuckle on 08/09/07 14:48
dkruger wrote:
> 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
>
This forces the user's system to start msword or something compatible on
their system. I read that he wants to display it as a web page - which
means he needs a .COM object on the server.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|