By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,722 Members | 1,904 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,722 IT Pros & Developers. It's quick & easy.

how to return continuus output?

P: n/a
Hi,

I have a script which takes some time to execute.
I would like to return intermediary results during the execution.

what would be the best thing to do?

So far there are no results until all the functions have finished the
processes.

thanks

Oliver

Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
> I have a script which takes some time to execute.
I would like to return intermediary results during the execution.


You can play around with flushing output, however, there is no guarantee
there. The most elegant solution is to do the following:

1 - Before you start the processing, output a javascript based popup window
(or you can use a div layer instead). This will serve as your "please
wait..." dialog.

2 - Once the script is done processing (most likely at the end of your html
output), output the cooresponding javascript to close the popup window or
hide the div layer.

____________________________________
Wil Moore III, MCP | Integrations Specialist
Jul 17 '05 #2

P: n/a
this is only human-seen solution...
....but if processing takes more time, browser interrupts connection, after
timeout
to prevent this timeout, you need to send some data (and flushing it) in
time between this two steps

if you cannot execute PHP code in this time-consuming operation (ie. you
wait for processing big SQL query) "register_tick_function" may be useful
also you can use style="display: none", to hide this text from human reader

Blackie
<la*******@hotmail.com> píše v diskusním příspěvku
news:10*************@corp.supernews.com...
I have a script which takes some time to execute.
I would like to return intermediary results during the execution.
You can play around with flushing output, however, there is no guarantee
there. The most elegant solution is to do the following:

1 - Before you start the processing, output a javascript based popup

window (or you can use a div layer instead). This will serve as your "please
wait..." dialog.

2 - Once the script is done processing (most likely at the end of your html output), output the cooresponding javascript to close the popup window or
hide the div layer.

____________________________________
Wil Moore III, MCP | Integrations Specialist

Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.