Re: Reload/restart php-gtk program
| From: | Bernard Fouché | Date: | Wed, 08 Aug 2007 09:22:14 +0000 |
| Subject: | Re: Reload/restart php-gtk program | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-8030@lists.php.net to get a copy of this message | ||
Bob Majdak Jr wrote:
//. all output must be silenced, and task must be //. backgrounded, or else system will not return //. and nothing happens to the main program. system("{$argstr} &> /dev/null &"); system() will suspend the current PHP process until the program launched is finished: you'll have two PHP-CLI running in the system.If this operation is to be done many times, you'll clobber memory with unneeded processes. If you want to replace the current process with a new one, then pcntl_exec() should be used. Regards, Bernard