how to read and write doc file using php?

  • Thread starter Thread starter Jimmy
  • Start date Start date
J

Jimmy

Guest
I have code which reads the text file very clarly but when I want to read and write any doc or any rtf file it writes as {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}{\f1\fswiss\fprq2\fcharset0 Arial;}}
means it reads also font and other things also . And writes like this . I want to avoid this.Please help
 
First you'll need to understand formal language parsing. Then you'll need to understand about markup and languages specifications. From there, you'll need to understand the DOC file format (and it's many various relatives). After that, you begin your schedule, write up a design document and then boom you're on your way.

Start here: Compilers: Principles, Techniques and Tools - Aho, Sethi, and Ullman (The Dragon Book).

If you crack you're way through that, you're more than halfway done.
 
Back
Top