in reply to Re: webserver independent script
in thread webserver independent script

Thx,
last sentece is good question. I look at Web techniques Column 20 - Merlyn using fork for two proceses to: 1) redirect to some URL and 2) run long time process (in this case it's search routine) so I think it should work. - so that webserver don't kill child process, hope.

Any suggestion?

Li Tin O've Weedle
mad Tsort's philosopher

Replies are listed 'Best First'.
Re: Re: Re: webserver independent script
by suaveant (Parson) on May 10, 2001 at 17:45 UTC
    I had this problem in Web-FTP you need to fork and close STDOUT;

    at least, you need to close STDOUT if you want apache to tell the page the browser is done. I do a...

    fork() && exit(0); close STDOUT;
    which allows the browser to go on its merry way.
                    - Ant