[nycphp-talk] Header issue...force download
George Schlossnagle
george at omniti.com
Mon Jun 28 09:51:03 EDT 2004
On Jun 28, 2004, at 8:16 AM, Jeff Siegel wrote:
> 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);
You don't need \n, and if you're insistent on using it, the string
should be double and not single quoted.
George
// George Schlossnagle
// Principal, OmniTI Computer Consulting, Inc.
// (w) 410.872.4910x202
// (c) 240.460.5234
More information about the talk
mailing list