Re: Help w/ 'headers already sent' and file download
| From: | Mike Walsh | Date: | Tue, 16 May 2006 11:03:58 +0000 |
| Subject: | Re: Help w/ 'headers already sent' and file download | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-236272@lists.php.net to get a copy of this message | ||
""Rabin Vincent"" <rabin@rab.in> wrote in message
news:c928c27e0605152151h1ced44ate647bb7c1807c14c@mail.gmail.com...
On 5/16/06, Mike Walsh <mike_walsh@mindspring.com> wrote:
[ ... snipped ... ]
>
> Is there a way to both display a web page and send content to be saved by
> the user? If someone knows of an example I could look at I'd be greatful.
No, you cannot display both a webpage and send a file
on the same page to the user.
What you could do is save the processed file in a temporary
folder and provide a link to download the file in your processing
statistics page. Or, you could redirect the user to the file after
showing the statistics page.
Rabin
[ ... snipped ... ]
I found a solution to my problem - an IFRAME with a 0 height and 0 width
does the trick.
Here is a thread which helped:
http://forums.invisionpower.com/index.php?showtopic=214649
Mike
--
Mike Walsh - mike_walsh at mindspring.com