Re: [PHP-GTK] Reload/restart php-gtk program

[email protected] (Bernard Fouché)
Newsgroups php.gtk.general
Organization Kuantic
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.