Re: Re: Interfacing with the outside world.
| From: | Holger Seidenberg | Date: | Fri, 11 Jul 2003 23:06:40 +0000 |
| Subject: | Re: Re: Interfacing with the outside world. | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3614@lists.php.net to get a copy of this message | ||
On Wed, 2003-06-25 at 07:57, Aaron wrote:
> Jason A. Borgmann wrote:
>
> > I have 2 questings actually.
> >
> > 1) Is there a way to spawn an external browser in response to a button
> > click? I can get the browser to spawn and to the right page, but my PHP
> > app locks up while the browser is in use and I have to close the browser
> > to get control of the PHP app again.
>
I use this way to open my PDF Documents in Internet Explorer.
$browser = new COM("InternetExplorer.Application");
$browser->Visible = true;
$browser->Navigate("path_to_pdf");
This works fine for me
> Use the "button-press-event" signal to detect button presses. To open an
> external program without halting you're app you can use this method:
>
> $cmd='start "irrelevant string" "'.$fullpathtofile.'"';
> $fp=popen($cmd, "rb");
> fclose($fp);
>
> Note: Will only work for Windows (and possibly not for 95/98/ME, I
> havn't tested it).
>