Scribit Tobia dies 26/03/2007 hora 21:51:
Although, if the operation is very lengthy (say, more than a minute) you should consider an anyncronous approach: a separate working thread plus client-side page refreshes (or AJAX or an iframe) for status polling.
AJAX is maybe a bit overkill here. Many sites just show an intermediate page with an immediate refresh to goes to the URL of the lengthy computation.
As all browsers won't redraw anything before they get data, you can then use the "data as return value" paradigm for both handlers, the intermediate page and the lengthy computation.
Alternatively, Pierre