This is what I was trying
<?php
header("Content-type: text/rtf");
header("Content-Disposition: attachment; filename=overdue.rtf");
$dataText = <<<EOD
\{\rtf1\ansi\ansicpg1252\uc1
\deff0\deflang1033\deflangfe1033{\fonttbl{\f0\from an\fcharset0\fprq2{\*\pano
se 02020603050405020304}Times New Roman;}{\f28\froman\fcharset238\fprq2
Times New Roman CE;}{\f29\froman\fcharset204\fprq2 Times New Roman Cyr;}
{\f31\froman\fcharset161\fprq2 Times New Roman
Greek;}{\f32\froman\fcharset162\fprq2 Times New Roman
Tur;}{\f33\froman\fcharset177\fprq2 Times New Roman
(Hebrew);}{\f34\froman\fcharset178\fprq2 Times New Roman (Arabic);}
{\f35\froman\fcharset186\fprq2 Times New Roman
Baltic;}}{\colortbl;\red0\green0\blue0;\red0\green 0\blue255;\red0\green255\b
lue255;\red0\green255\blue0;\red255\green0\blue255 ;\red255\green0\blue0;\red
255\green255\blue0;\red255\green255\blue255;
\red0\green0\blue128;\red0\green128\blue128;\red0\ green128\blue0;\red128\gre
en0\blue128;\red128\green0\blue0;\red128\green128\ blue0;\red128\green128\blu
e128;\red192\green192\blue192;}{\stylesheet{
\ql \li0\ri0\widctlpar\aspalpha\aspnum\faauto\adjustri ght\rin0\lin0\itap0
\fs24\lang3081\langfe1033\cgrid\langnp3081\langfen p1033 \snext0
Normal;}{\*\cs10 \additive Default Paragraph Font;}}{\info{\title This is an
rtf document}{\author Eamon Hannan}
{\operator Eamon
Hannan}{\creatim\yr2004\mo3\dy21\hr21\min30}{\revt im\yr2004\mo3\dy21\hr21\mi
n30}{\version1}{\edmins0}{\nofpages1}{\nofwords0}{ \nofchars0}{\*\company
CMC}{\nofcharsws0}{\vern8247}}\paperw11906\paperh1 6838
\widowctrl\ftnbj\aenddoc\noxlattoyen\expshrtn\noul trlspc\dntblnsbdb\nospacef
orul\formshade\horzdoc\dgmargin\dghspace180\dgvspa ce180\dghorigin1800\dgvori
gin1440\dghshow1\dgvshow1
\jexpand\viewkind1\viewscale100\pgbrdrhead\pgbrdrf oot\splytwnine\ftnlytwnine
\htmautsp\nolnhtadjtbl\useltbaln\alntblind\lytcalc tblwd\lyttblrtgr\lnbrkrule
\fet0\sectd
\linex0\headery708\footery708\colsx708\endnhere\se ctlinegrid360\sectdefaultc
l
{\*\pnseclvl1\pnucrm\pnstart1\pnindent720\pnhang{\ pntxta .}}{\*\pnseclvl2\pn
ucltr\pnstart1\pnindent720\pnhang{\pntxta
..}}{\*\pnseclvl3\pndec\pnstart1\pnindent720\pnhan g{\pntxta
..}}{\*\pnseclvl4\pnlcltr\pnstart1\pnindent720\pnh ang{\pntxta )}}{\*\pnseclvl
5
\pndec\pnstart1\pnindent720\pnhang{\pntxtb
(}{\pntxta )}}{\*\pnseclvl6\pnlcltr\pnstart1\pnindent720\pnha ng{\pntxtb
(}{\pntxta )}}{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhan g{\pntxtb
(}{\pntxta )}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnha ng
{\pntxtb
(}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhan g{\pntxtb
(}{\pntxta )}}\pard\plain \ql
\li0\ri0\widctlpar\aspalpha\aspnum\faauto\adjustri ght\rin0\lin0\itap0
\fs24\lang3081\langfe1033\cgrid\langnp3081\langfen p1033 {
This is an rtf document.
\par }\}
EOD;
echo $dataText;
?>
"Garp" <ga***@no7.blueyonder.co.uk> wrote in message
news:jX***********************@news-text.cableinet.net...
"EJ" <ej*******@uq.net.au> wrote in message
news:40******@news.comindico.com.au... Phil
I have trouble I think with the ascii format - I have tried for example
to cut and paste the rtf headers from editpad lite into a php variable but
there is some kind of problem - I just get the headers appearing in my
rtf document.
Post a sample?
Garp