Re: Windows COM
| From: | Steph Fox | Date: | Fri, 02 Jun 2006 17:58:29 +0000 |
| Subject: | Re: Windows COM | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6966@lists.php.net to get a copy of this message | ||
Hi 'Norm',
Really not sure what you're looking for here.
If you want to bind to existing library functions there's the com_dotnet extension, which is built-in by default in the win32 PHP distribution. That gives access to, well, COM and DCOM. There's pecl/ffi, which is woefully under-documented but has the advantage of being cross-platform. See http://pecl.php.net/package/ffi.
If you're writing a new app, _only_ want to work with Windows, and are very sure you won't need it to be cross-platform at some later point, you'll probably want to look at WinBinder. See http://pecl.php.net/package/WinBinder and also http://www.hypervisual.com/winbinder/, which is a bit more informative.
PHP-GTK basically is a PHP wrapper for the GTK+ libraries, i.e. it has a full cross-platform API 'inside'. There are pics in the manual these days, have a browse and see if it's the kind of thing you're looking for: http://gtk.php.net/manual/en/tutorials.php is a good place to start. It doesn't allow you to communicate directly with the underlying platform, though, obviously.
It's possible to use combinations, e.g. you could use PHP-GTK alongside ffi or com_dotnet...
- Steph
----- Original Message ----- From: "Norm de Plume" <mememomi@yahoo.com>
To: <php-gtk-general@lists.php.net>
Sent: Friday, June 02, 2006 7:37 PM
Subject: [PHP-GTK] Windows COM
Newbie wants to know where he can find some info on how to fiddle with Windows applications via COM. Can I use gtk-php to be the frontend for php-as-shell-script on Windows? (I hope that makes some sort of sense) Thanks, Norm