NYCPHP Meetup

NYPHP.org

[nycphp-talk] Header issue...force download

Jeff Siegel jsiegel1 at optonline.net
Mon Jun 28 10:05:45 EDT 2004


Didn't seem to have any effect.

Jeff

Brian Pang wrote:

> 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
>>
>>
> 
> 
> 
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
> 




More information about the talk mailing list