[nycphp-talk] Header issue...force download
Jeff Siegel
jsiegel1 at optonline.net
Mon Jun 28 08:16:02 EDT 2004
The snippet of code below works fine with IE and not Firebird. In IE,
you get prompted to save the file and it displays a filename of
'author.csv.' In Firebird, it displays a filename of 'author.csv.php'.
It's that "php" extension that doesn't belong there.
Header('Content-Type: text/csv\n',true);
Header('Content-Disposition: attachment; filename="author.csv"');
Header('Pragma: no-cache',true);
Header('Expires: 0',true);
Jeff
More information about the talk
mailing list