RE: [PHP-GTK] php-gtk file extension
| From: | Christian Weiske | Date: | Tue, 04 Nov 2003 18:23:06 +0000 |
| Subject: | RE: [PHP-GTK] php-gtk file extension | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-4061@lists.php.net to get a copy of this message | ||
Hi
[Michael Haszprunar]
> files and they are executed automatically. Works fine but was
> not easy to configure.
> Don't ask me how I did it, I don't know (too
> long ago). I just know: it works.
phpgtk.exe from cweiske.de does this automatically for .php-gtk
extensions if you call it with "-install" as parameter
> I disagree in one point: "All php-gtk programs have the same
> icon". See, I would like to give my applications their
> own icons, because it's cool and maybe I have a brand logo myself.
But that would mean a different extension; you can't have different
icons for the same extension on windows (or I don't know how to do
it)... except for .exe files, but this is because the icons are
embedded.
[firepages]
> I use .pgtk & .dgtk , ... pgtk when using php_win.exe (no
> command window) & dgtk for when you want the command window
> visible for output.
> I don't care a kippers what they are called , but I think we
> need 2 , one for each ?.
I think mostly you will use the php_win.exe/phpgtk.exe, the command line
is not used so often.
For that I think the "context menu"/"open in shell" solution is better,
giving you the ability to start the same file in normal and shell mode
without changing the extension.
If you want to try it:
http://www.cweiske.de/download/phpgtk/phpgtk_extension.reg
Is a registry file in which you have to customize the paths where your
php-gtk installation is.
Some explanation:
> [HKEY_CLASSES_ROOT\.php-gtk]
This is the extension registered -> here .php-gtk
> [HKEY_CLASSES_ROOT\PHPGTK.application\DefaultIcon]
> @="c:\\programme\\system\\php-gtk\\php4\\php_gtk.exe,2"
Here is the icon set, you could use php_win.exe,0 if you don't have
php_gtk.exe
> [HKEY_CLASSES_ROOT\PHPGTK.application\shell\open\command]
> @="c:\\programme\\system\\php-gtk\\php4\\php_gtk.exe \"%1\" %2 %3 %4
%5 %6 %7 %8 %9"
This is the path for the "normal" start mode without the dos box.
replace php_gtk.exe with php_win.exe if you don't have it and customize
the path.
The next lines are for the "open with dosbox/shell" function... it's not
hard to understand.
If you're on w9x/me you could have to change the first line from
> Windows Registry Editor Version 5.00
to
> REGEDIT4
Regards/MfG,
Christian Weiske
<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>
Christian Weiske
cweiske@cweiske.de
www.cweiske.de
<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>
Always forgetting birthdays? Try birthday reminder!
http://www.cweiske.de/birthday.htm