TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Absolute Beginners (http://www.talkphp.com/absolute-beginners/)
-   -   is this possible? (http://www.talkphp.com/absolute-beginners/2807-possible.html)

meshi 05-15-2008 02:20 PM

is this possible?
 
can php highlight the text found in the .doc files?

for example i want to highlight the word pretty that was written in the ms word. when i open a.doc in the web it would highlight all the words pretty found in the a.doc.


is that posible?if so.how?

Kalle 05-15-2008 02:27 PM

Its possible to read Word files using COM on Windows which requires the server or PC to have Office installed:
PHP: COM and .Net (Windows) - Manual

But Im sure theres lots of other code examples out there that lets you read Word documents more effectively ;)

meshi 05-15-2008 02:30 PM

but im using linux is that applicable?

Kalle 05-15-2008 02:39 PM

I did a quickly search and what I could see from the first results was that you probably have to use an external program and execute it over command line or something similar.

There seems not to be any php program that reads a .doc file using native php code unfornatuly =/

meshi 05-15-2008 03:56 PM

that what i also read on google but my problem is what external program i will use to read a.doc.?even a simple display on the browser i could not find any.when you open it using php what you will see is boxes.i dont want to convert it on txt file because it will not follow the logic of what i want to achieve.:(

Orc 05-15-2008 04:06 PM

Quote:

Originally Posted by Kalle (Post 14655)
I did a quickly search and what I could see from the first results was that you probably have to use an external program and execute it over command line or something similar.

There seems not to be any php program that reads a .doc file using native php code unfornatuly =/

That's why I find PHP some what hard, and limited. :P ... in certain areas of course

Jim 05-15-2008 05:37 PM

.doc files indeed seem imposible for linux. You can use .rtf files though! :)

(You can try to ask some guys at OpenOffice, maybe there is a command line way of controlling OpenOffice.

meshi 05-16-2008 10:01 AM

Thanks for the info guys


All times are GMT. The time now is 03:38 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0