doc reader

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
surath
Forum Newbie
Posts: 14
Joined: Fri Jun 15, 2007 8:59 am

doc reader

Post by surath »

Hi All,

Stuck with a problem. Anyone there can tell me how to read a doc file in php?

Thank you in advance.
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Post by aceconcepts »

Can you be more specific?

File type...?
surath
Forum Newbie
Posts: 14
Joined: Fri Jun 15, 2007 8:59 am

Post by surath »

aceconcepts wrote:Can you be more specific?

File type...?
Sure...It'll be MS-WORD file i.e. like "sample.doc"(with ".doc" extension)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Since Word files are a proprietary, binary format, their exact composition isn't fully known (for all versions,) yet.

There are readers for the XML variant of Word files readily available.. although Word only recently added this "feature." There are also readers for RTF (Rich-text format) files, which Word (in somewhat recent versions) can write too. Do you want to read the binary format?

http://www.phpclasses.org/browse/package/1352.html could possibly be of interest.
Post Reply