Posted by Daedalus.OS on 11/04/46 11:17
I don't understand why you want to refresh over and over ? If you create
your file within the file_gen.php file (from my previous exemple) and then
when the creation process is finished make the script sends the required
headers followed by fread('file') ... when you will do the refresh to that
file the browser should wait for the headers before taking any action (as
long as the browser request doesn't timed out). When it will receive it
since the header will specify Content-Disposition: attachment;
filename="destination_file_name.ext", then it should prompt to save the
file.
Dae
<edykstra@virtualcad.com> wrote in message
news:1117368506.468500.139130@g47g2000cwa.googlegroups.com...
> Dae,
>
> Thanks! I came up with the same idea late last night while I was trying
> to get to sleep. What I will do is refresh the page over and over until
> the file is ready. On each refresh, I can show a 'progress bar'. When
> the file is ready, the following refresh will send the file.
>
> Eric
>
[Back to original message]
|