BrotherLogic Posted August 27, 2006 Share Posted August 27, 2006 I need to know if this is possible.I am looking to convert MS Office files to .html with PHP...Thanks guys. Link to comment https://forums.phpfreaks.com/topic/18775-how-do-i-convert-doc-to-html-with-php/ Share on other sites More sharing options...
onlyican Posted August 27, 2006 Share Posted August 27, 2006 This is not very easy, you cant just convert .doc to .html, as they are encoded differentlyThe only way I can think of, not sure if it would workuseing fopen(), fread(), fclose() functionsOPen the fileGet all the text to a variablethen create a new file (with the same functions)and add the text in there.As I said, I am not sure if this would grab the text, or the encoded rubbish as well. Link to comment https://forums.phpfreaks.com/topic/18775-how-do-i-convert-doc-to-html-with-php/#findComment-81087 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.