What file type you wannt?
For to make a TXT file this is the last instruction:
header("Content-type: application/x-msdownload");
header("Content-type: application/txt");
header("Content-Disposition: attachment; filename=$fiche");
header("Pragma: no-cache");
header("Expires: 0");
print "$data";
The $data field contain all words you want!
Lucky!
(I'm sorry for my english, I'm spanish)
|