Jump to content


Photo

How do I convert .doc to .html with PHP


  • Please log in to reply
1 reply to this topic

#1 BrotherLogic

BrotherLogic
  • Members
  • PipPip
  • Member
  • 22 posts

Posted 27 August 2006 - 02:54 AM

I need to know if this is possible.
I am looking to convert MS Office files to .html with PHP...


Thanks guys.

#2 onlyican

onlyican
  • Members
  • PipPipPip
  • Advanced Member
  • 921 posts
  • LocationHants - UK

Posted 27 August 2006 - 01:02 PM

This is not very easy, you cant just convert .doc to .html, as they are encoded differently

The only way I can think of, not sure if it would work
useing fopen(), fread(), fclose() functions
OPen the file
Get all the text to a variable
then 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.
Tell me the problem, I will try tell you the solution




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users