RE: [PHP] Setting headers for file download

2006-06-15 Thread Richard Lynch
up. Can > that be > solved? > > -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 14, 2006 4:58 AM > To: Peter Lauri > Cc: php-general@lists.php.net > Subject: Re: [PHP] Setting headers for file download > > On Tue,

RE: [PHP] Setting headers for file download

2006-06-13 Thread Peter Lauri
Hi, when I do that I do not get any download frame showing up. Can that be solved? -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 4:58 AM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] Setting headers for file download

Re: [PHP] Setting headers for file download

2006-06-13 Thread Richard Lynch
On Tue, June 13, 2006 1:44 am, Peter Lauri wrote: > This is how I try to push files to download using headers: Content-type: application/octet-stream Any browser failing to download THAT is seriously broken. The Content-Disposition: crap will only work on select browsers -- If you really want th

[PHP] Setting headers for file download

2006-06-13 Thread Peter Lauri
Best group member, This is how I try to push files to download using headers: header("Content-type: $file_type"); header("Content-Disposition: attachment; filename=$filename"); print $file; It works fine in FireFox, but not that good in IE. I have been googled to find the fix for IE, but I can