View Single Post
  #2 (permalink)  
Old April 11th, 2007, 05:58 PM
Baco Baco is offline
Registered User
Join Date: Apr 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

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!


(I'm sorry for my english, I'm spanish)