Re: forking hell

From: Date: Wed, 03 Jul 2002 12:46:34 +0000
Subject: Re: forking hell
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-2186@lists.php.net to get a copy of this message
On Wed, 3 Jul 2002, Ian Boxsell wrote: > hi all > > b4 Q would like to warn you that i am a VERY amateur code cutter > > my research indicates that if i want to call a 3rd party app (perl script that may take a while > to run) > and continue on with app that i need to > > have php >=4.2.0 > compile with --enable-pcntl > be on a unix variant/platform > and use pcntl_exec to call perl (or whatever else i may wish to call) Yes, you could do it that way but since you're just involking Perl it would be much better to use the exec() call. pcntl is for forking the current application, I don't think this is really what you want. > Q: anyone had success with this method ?? has anyone got a sample which calls a 3rd party app > ?? and is pcntl_exec a goer in php-gtk ?? > have read alan's summation > http://www.akbkhome.com/news/fixing%20fork that pcntl_fork() is the > business and > then had difficulty applying the example to my situation (read i don't get it - no offence > alan refer to line 1) Have a look at this: http://www.php.net/manual/en/ref.exec.php --rdp -- Rich Payne http://talisman.mv.com

« previous php.gtk.general (#2186) next »