On Tue, 2007-07-17 at 00:44 -0400, yitzle wrote:
> I need some guidance...
> I'm thinking of writing a CGI script that someone can pass some data
> and set it running. The script may take a few seconds to run.
> Is it safe/correct/OK to have a CGI script fork, with one thread
> respondng with a HTTP response while the other thread does its work? I
> want the HTTP response to finish sending right away, and not have to
> wait for the script to finish.

I have done this and it works OK.

I used a second CGI that queried the log file stored on the server with
an auto-update flag.

Currently I am reading up on AJAX that seems to be the correct solution
to the problem and makes for some slick applications.

-- 
Ken Foskey
FOSS developer


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to