You are here: Re: help on word document « PHP Programming Language « IT news, forums, messages
Re: help on word document

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
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация