Re: [PHP-GTK] Reload/restart php-gtk program
by Bernard Fouche other posts by this author
Aug 8 2007 2:23AM messages near this date
Re: [PHP-GTK] Reload/restart php-gtk program
|
[PHP-GTK] You've received a postcard from a Worshipper!
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
--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Peter Smith
sebastianmarconi
Adrian Snyman
Marc Quinton
Elizabeth Smith
Bob Majdak Jr
Peter Smith
Bernard Fouche
Bob Majdak Jr
Bernard Fouche
|