Hi
I'm trying with fread and fwrite.
$fr = fopen("tpl.doc", "r");
$string = fread($fr, filesize("tpm.doc"));
$string = str_replace("#_NAME_#", $f_name, $string);
$string = str_replace("#_DATE_#", $f_date, $string);
$fw = fopen("tmp/dl.doc", "w");
fwrite($fw, $string);
fclose($fw);
fclose($fr);
I notice that phpMyAdmin can export to msword.
Is it possible to use the same funciotn to do the same here?
Thanks
Nuno