MS Word plain text
Posted: Thu Feb 21, 2008 2:33 pm
I have a php file that exports a plain text file. If I open the text file in a notepad it shows correctly. When I open it in MS Word it looses all the tags. Is there a additional header or something to get Word to stop trying to render the tags & display as plain text?
Code: Select all
header('Cache-Control: no-cache, must-revalidate');
header('Content-Type: text/plain');
header('Content-Disposition: attachment; filename="' . $filename[$report] . '";');
<label><leadin>my</leadin>calendar</label><body>
<subhead>February 22<EP></subhead>
<bold>Info</bold>Description Text.<EP>