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 wondering on how to read an rtf file through php. Its printing as if it was opened as a text file. somethings are included automatically like this..
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}} {\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\f0\fs20 hi this is a long test.\par this is sat testing the file.\par } 0
The last I checked, there are really no satisfactory pure-PHP RTF parsers out there right now. COM will let you piggy back off of Microsoft Word's RTF parsing capabilities (which are fairly good), and that PHP class looks interesting but probably has incomplete coverage of the RTF spec.