in reply to How to run a process in background?
See forking in a cgi script, which asks a very similar question.