Re: [PHP] Forcing Download - IE Issue

2010-10-27 Thread Bastien Koert
On Wed, Oct 27, 2010 at 4:18 PM, Floyd Resler wrote: > I'm trying to force a download using the following code: > header('Content-type: text/calendar'); > header('Content-Disposition: attachment; filename="calendar.ics"'); > echo $calendar; > > It works great in all browsers except IE.  In IE, the

[PHP] Forcing Download - IE Issue

2010-10-27 Thread Floyd Resler
I'm trying to force a download using the following code: header('Content-type: text/calendar'); header('Content-Disposition: attachment; filename="calendar.ics"'); echo $calendar; It works great in all browsers except IE. In IE, the window opens and then closes without ever display the download