Actually, there is a unix-like fork() function in an extension. exec() will execute another process, but it isn't really a fork().
Look at the pcntl extension and check out pcntl_fork(). I've been working with it for a few days and it works pretty well. It's still marked EXPERIMENTAL, so don't rely too much on it. I have no idea as to its stability. And it's probably only truly useful for command line php. (As for the funkyness, kill zombies with pcntl_waitpid().) J Richard Lynch wrote: > http://php.net/exec > > You'll need to use & in the command to be executed. > > That command may or may not need to be wrapped up in a shell script to > muck with stdin/stderr/stdout so that PHP isn't waiting for those to be > freed > up... Or something like that. I don't really understand it, I just know > that programs that use stdin/stdout/stderr have to be treated funky. > > -- > WARNING [EMAIL PROTECTED] address is an endangered species -- Use > [EMAIL PROTECTED] > Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm > Volunteer a little time: http://chatmusic.com/volunteer.htm > ----- Original Message ----- > From: Paul Procacci <[EMAIL PROTECTED]> > Newsgroups: php.general > To: <[EMAIL PROTECTED]> > Sent: Thursday, October 04, 2001 10:12 PM > Subject: stupid newbie question > > >> How do u fork? >> >> Thanks ahead of time : ) >> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]