>
> 1. How can I allow the browser to display something while the process is
> running to let the user know the server is working and prevent a timeout
> in by the browser. (interim page)
>

In Embperl 1.3.x set dbgFlushOutput and optEarlyHttpHeader, in this case any
output is dierectly send to the browser and displayed (as long as the
browser can display it e.g. is not inside a table etc.). Note: You shouldn't
set dbgFlushOutput normaly, because it slows down the network transfer,
because is displays buffering.

Embperl 2.0 is not cable of doing so. This is a desgin issue. I may add some
possibility for that later.

I often use a normal Apache::Registry script, disable output buffering with

$| = 1 ;

and print something out like in good old times ....

or I have a page with "please wait a moment..." and have a

<http meta-equiv="refresh" content="0;url=url of your script that does the
work">

at the _end_ of the file. This way the page will first be displayed and then
the refresh will take place. If the new page displays nothing before it has
finished it's processing the user will see the "please wait" page.


> 2. I need the above method/technique to be overridden when dealing with
> cached results.
>
> My idea to date is writing the Embperl data (%fdat,%udat) to disk and
> then passing the temp filename to a spawned (detached) process, but I am
> not even 100% sure how do that since I am not sure at what stage of the
> processing I am allowed to spawn a process and still return content to
> the browser.
>

Take a look into the mod_perl guide at perl.apache.org, there are a set of
hints about this topic

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to