Re: Run Executive from PHP on Windows

From: Date: Tue, 10 Aug 2004 22:40:52 +0000
Subject: Re: Run Executive from PHP on Windows
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-4957@lists.php.net to get a copy of this message
Hi, Wednesday, August 11, 2004, 5:36:52 AM, you wrote: dli> Hi all i try to develop a little Gui Application to create html document. dli> I want to launch the browser with dli> exec() function from PHP-Gtk but i don't have any result. dli> $button = &new GTkButton('view'); $button->>connect('clicked','launch_browser'); dli> function launch_browser() { dli> $path = "C:\\Program\\Internet Explorer\\iexplore.exe"; dli> exec($path); dli> } dli> On the CMD.exe console i read unkown command dli> C:\Program\Internet Explorer\iexplore.exe dli> blah blah blah dli> I want to locate the browser on localhost to particular site from example: dli> http://localhost/example/view.php dli> What i do ? dli> -- dli> PHP-GTK General Mailing List (http://gtk.php.net/) dli> To unsubscribe, visit: http://www.php.net/unsub.php You can do it via COM, here is a small example that will fire up a window and bring it to the front. I have been able to embed an ie browser object in a gtk window but haven't figured out how to stop it grabbing the keyboard. When I do I'll add it to the wiki :) <?php dl("php_w32api.dll"); $api =& new win32; $api->registerfunction("long SetForegroundWindow Alias SetForegroundWindow (long hWnd) From user32.dll"); $browser = new COM("InternetExplorer.Application"); $browser->left=200; $browser->top=200; $browser->height=600; $browser->width=800; $browser->menubar=1; $browser->toolbar=1; $browser->statusBar=1; $browser->TheaterMode=0; $browser->navigate("http://gtk.php.net/"); $hwnd = $browser->HWND; $browser->visible=1; $api->SetForegroundWindow($hwnd); ?> -- regards, Tom

« previous php.gtk.general (#4957) next »