ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-gtk-general
php-gtk-general
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved