On Wed, Oct 27, 2010 at 4:18 PM, Floyd Resler <fres...@adex-intl.com> 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 window opens and then 
> closes without ever display the download save window.  I'm not sure why it 
> isn't working in IE.
>
> Thanks!
> Floyd
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


Have a look at the headers page in the manual
http://php.net/manual/en/function.header.php

There are a number of examples that talk about downloading for IE (it
blows as doing that)
-- 

Bastien

Cat, the other other white meat

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to