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!
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.
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.
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.