Re: Help w/ 'headers already sent' and file download

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



""Rabin Vincent"" <rabin@xxxxxx> wrote in message 
news:c928c27e0605152151h1ced44ate647bb7c1807c14c@xxxxxxxxxxxxxxxxx
On 5/16/06, Mike Walsh <mike_walsh@xxxxxxxxxxxxxx> 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 

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux