Re: runs
| From: | Gabor Hojtsy | Date: | Wed, 02 Oct 2002 11:44:15 +0000 |
| Subject: | Re: runs | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-2498@lists.php.net to get a copy of this message | ||
> Excuse-me by this kind of question, but....
> How can I run a win application in background from my php-gtk application
?
> In Linux I use this:
> exec("$PsSoft $FileName >/dev/null &");
There are quite some tips at http://php.net/exec, though I was
unable to come up with anything really working. Eveything described
there, including mikehup, bgrun and all the shell hacks makes my
PHP-GTK app freeze or run the application but pass on the focus to
that app (it's a GUI one, iexplorer actually), so the PHP-GTK app
is only displayed as a blank white window with no child widgets,
till I quite iexplore (then everything is back to normal).
My method is:
system(
"CMD.EXE /C " .
"c:\\progra~1\\intern~1\\iexplore ".
"http://gtk.php.net/ >NUL"
);
This opens the PHP-GTK page on windows, but makes the PHP-GTK app
uninteractive, till I close iexplore... :(( Anyone with tips?
Goba