I already have an rtf string pulled from a mysql column.
Then, i did some string replacement, and then output this same rtf string for download/opened by word. But it still shows the rtf code.
It should already be human readable after opening it in word right?
This is the document content after clicking view/download.
But, before above view, I got this error: (not sure if this is rtf related)
This is my code snippet for the outputting the rtf doc.
$title = $_GET["rtf"];
header('Content-Disposition: '.$attachornot.'; filename="'.$title.'"');
ob_end_clean(); before calling
header() fixed this :)
thanks to my friend.