Re: Background processing / forking

From: Date: Tue, 06 Mar 2001 18:57:26 +0000
Subject: Re: Background processing / forking
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-42795@lists.php.net to get a copy of this message
> Now the problem is that the C program will be running > for longs periods like maybe half or even an hour. So > i would basically want to just execute the program and > return control to the script immediately so that the c > program continues it's work. > > it's easy with forking. but i dont see it in php. It's quite easy with PHP as well, even though we do not have forking. Either use exec("nohup c-program") to detach the program, and return control back to the script, or execute it via a shutdown function. That way, the program gets executed after the script has finished. PEAR offers an abstraction for executing system commands. Look for CMD.php /A

« previous php.general (#42795) next »