Re: external program execution
| From: | Gabor Hojtsy | Date: | Fri, 16 Aug 2002 09:14:21 +0000 |
| Subject: | Re: external program execution | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-2337@lists.php.net to get a copy of this message | ||
> threading - but that in my talk :)
> have you tried popen('someapp &','w'); ??
This does not help... I also tried to wrap that
app around with a batch file, or PHP itself:
popen('php start.php &', 'w');
But that also only runs after PHP-GTK quits. ;((
The strange thing is that all things work in
command line scripts, and that script does end the
execution before the external app is closed...
<?php
// Produces the exact same effect with
// system() or `` or popen()
exec("start http://localhost/");
for ($i = 0; $i < 8; $i++) {
sleep(1);
}
?>
This script does show that page with my default browser
and it does quit after exactly 8 seconds, while I can
browse my local page. Why doesn't that work in PHP-GTK?
It should be the same... :((
Goba