Yup, loading the php_gtk.dll extension is pretty important if you're trying to run PHP-GTK apps🙂
First some theory. When executed, php.exe has a specific order in which it looks for php.ini and dll's. The first place it looks for php.ini is it's native directory, then your system folders, and finally your PATH. The same order is followed for dll's if php.ini is not found. If php.ini is found, it reads to extension_dir directive and looks exclusively in the path(s) specified there.
Now what you can do to solve the php_gtk.dll load problem? First, we'll assume that you extracted the PHP-GTK distro to c:\php-gtk and c:\windows\system (BTW, version 0.1.1 was released yesterday). If you're running your webserver's php.ini in c:\windows\system, place a copy of php.ini in c:\php-gtk and comment out any extension load lines. This will prevent your gtk apps from trying to load extensions which are not compiled for the php-gtk build. You can however add a line to statically load the php_gtk.dll extension if you wish (though this is redundant since it's usually called from within the script).
Now, verify that the following files from the php-gtk distribution are in c:\php-gtk:
php.exe
php_win.exe
php4ts.dll
php_gtk.dll
As long as those files are all in the same directory, PHP-GTK should work properly. You may also want to add c:\php-gtk to your %PATH% so you don't need to type the full path everytime.
Let me know if you still can't get it working. HTH.
geoff