PDA

View Full Version : Someway to get word doc to html [php]


interactive
06-23-03, 11:31 AM
Well I have a client who is having me create a writters portal I guess you could call it. Since you can't just copy and paste text from word to say an HTML form, I need to find a method to convert a word document to html with PHP (linux). I've found a kewl script that does this, but only runs on windows (because it requires com). Any other ideas on what to do? Is there a better way to approach this? Thanks

Mark
06-23-03, 01:00 PM
I don't think you can do it with php, but with perl, you can use the following modules:

http://www.res.bbsrc.ac.uk/wp2html/
and
http://sourceforge.net/projects/wvware/

interactive
06-23-03, 01:31 PM
Hmm, I'll have to look into that. You don't think that would break plesk would you?

Mark
06-23-03, 01:48 PM
Don't know, haven't used plesk in over a year.

Chicken
06-23-03, 02:40 PM
I must be missing something. In MS Word, you can save any document as an HTML file and it will convert it (though really ugly coding though). Again, I'm probably not understanding what you're trying to do.

Mark
06-23-03, 03:12 PM
Originally posted by Chicken:

I must be missing something. In MS Word, you can save any document as an HTML file and it will convert it (though really ugly coding though). Again, I'm probably not understanding what you're trying to do.

As I understand it, the person is trying to do this on the server side. Most likely for automation or batch purposes. I.E. a writer uploads a word doc, and it gets published to html format for display on the website.