Converting MS Word to HTML?

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
davisaggie
Forum Newbie
Posts: 16
Joined: Mon Aug 20, 2007 3:40 pm
Location: Salinas, CA

Converting MS Word to HTML?

Post by davisaggie »

I am looking for a way to convert MS Word documents (.DOC files) to HTML using PHP. Ideally I would like to put the generated HTML into a MySQL database, and still preserve the formatting in the MS Word document. Is this even possible in PHP? I could not find anything that would do this in the PHP function list.


Thanks
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I think you might need a COM object interface for this, but that is seriously a stab in the dark. If you can't find anything about hitting Word docs, try googling for hitting Excel spreadsheets as the code behind it might be similar.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

There's nothing in the function list that would provide this narrow of functionality.

There are several projects available in various locations (like Sourceforge) that produce HTML from Word document files. You can also use COM as Everah has stated.
Post Reply