[nycphp-talk] Header issue...force download
Brian Pang
bpang at bpang.com
Mon Jun 28 09:49:51 EDT 2004
I think you need to set the Content-Type to
application/octet-stream
> 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
>
>
>
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
>
>
More information about the talk
mailing list