TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 05-15-2008, 02:20 PM   #1 (permalink)
The Contributor
Upcoming Programmer 
 
meshi's Avatar
 
Join Date: Oct 2007
Posts: 44
Thanks: 0
meshi is on a distinguished road
Default 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?
meshi is offline  
Reply With Quote
Old 05-15-2008, 02:27 PM   #2 (permalink)
The Frequenter
Zend Certified 
 
Join Date: Sep 2007
Location: Denmark
Posts: 352
Thanks: 8
Kalle is on a distinguished road
Default

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 ;)
__________________
Send a message via MSN to Kalle Send a message via Skype™ to Kalle
Kalle is offline  
Reply With Quote
Old 05-15-2008, 02:30 PM   #3 (permalink)
The Contributor
Upcoming Programmer 
 
meshi's Avatar
 
Join Date: Oct 2007
Posts: 44
Thanks: 0
meshi is on a distinguished road
Default

but im using linux is that applicable?
meshi is offline  
Reply With Quote
Old 05-15-2008, 02:39 PM   #4 (permalink)
The Frequenter
Zend Certified 
 
Join Date: Sep 2007
Location: Denmark
Posts: 352
Thanks: 8
Kalle is on a distinguished road
Default

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 =/
__________________
Send a message via MSN to Kalle Send a message via Skype™ to Kalle
Kalle is offline  
Reply With Quote
Old 05-15-2008, 03:56 PM   #5 (permalink)
The Contributor
Upcoming Programmer 
 
meshi's Avatar
 
Join Date: Oct 2007
Posts: 44
Thanks: 0
meshi is on a distinguished road
Default

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.:(
meshi is offline  
Reply With Quote
Old 05-15-2008, 04:06 PM   #6 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Quote:
Originally Posted by Kalle View Post
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
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 05-15-2008, 05:37 PM   #7 (permalink)
Jim
The Addict
 
Jim's Avatar
 
Join Date: Nov 2007
Location: the Netherlands
Posts: 281
Thanks: 2
Jim is on a distinguished road
Default

.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.
__________________
Nunchaku! Who doesn't like martial arts? =)
Send a message via MSN to Jim Send a message via Skype™ to Jim
Jim is offline  
Reply With Quote
Old 05-16-2008, 10:01 AM   #8 (permalink)
The Contributor
Upcoming Programmer 
 
meshi's Avatar
 
Join Date: Oct 2007
Posts: 44
Thanks: 0
meshi is on a distinguished road
Default

Thanks for the info guys
meshi is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 07:22 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design