Re: Re:Re: [PHP-GTK] forking hell
| From: | firepages.com.au | Date: | Thu, 04 Jul 2002 00:18:37 +0000 |
| Subject: | Re: Re:Re: [PHP-GTK] forking hell | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-2192@lists.php.net to get a copy of this message | ||
I use popen (thanks to the peeps here!)
$yaks=popen('start c:\wherever\myapp');pclose($yaks);
the 'stsrt' opens a new command window which is a a seperate process
- you can tag on 'exit' to close the command window if you prefer.
Regards,
Simon Wheeler
firepages
----- Original Message -----
From: "Ian Boxsell" <ian@kos.com.au>
To: "Rich Payne" <rdp@talisman.mv.com>
Cc: <php-gtk-general@lists.php.net>
Sent: Thursday, July 04, 2002 5:36 AM
Subject: [PHP-GTK] Re:Re: [PHP-GTK] forking hell
> have exec working fine in some instances but it won't do what i want in
this
> one
> tried exec("app &"); but it freezes my php-gtk code
> perl was probably a bad example i have a php-gtk app that needs to start 2
> other apps (1 gtk)
>
>
>
>
>
> ----- Original Message -----
> From: "Rich Payne" <rdp@talisman.mv.com>
> To: "Ian Boxsell" <ian@kos.com.au>
> Cc: <php-gtk-general@lists.php.net>
> Sent: Wednesday, July 03, 2002 10:46 PM
> Subject: Re: [PHP-GTK] forking hell
>
>
> > 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
> >
> >
> > --
> > PHP-GTK General Mailing List (http://gtk.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>