I'm using the following script to force-download a textfile. I'm trying to set it up so it will download using ASCII transfer type in order to preserve formatting. I've tried different types on the "Content-transfer-encoding" line, but none seem to work.
header("Cache-control: private");
header("Content-type: application/octet-stream");
header("Content-transfer-encoding: 7bit");
header("Content-Disposition: attachment; filename=".$statfilename."");
readfile($statfile);
Any clues would be appreciated.
Marty