Re: Interfacing with the outside world.
| From: | Aaron | Date: | Wed, 25 Jun 2003 05:57:57 +0000 |
| Subject: | Re: Interfacing with the outside world. | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3572@lists.php.net to get a copy of this message | ||
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.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).