Re: php-gtk file extension

From: Date: Tue, 04 Nov 2003 17:09:35 +0000
Subject: Re: php-gtk file extension
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-4056@lists.php.net to get a copy of this message
Christian Weiske wrote:
Hi <snip>
The conclusion: A standard php-gtk file extension would be very useful. It has following advantages: - Run php-gtk applications with ease, even fresh downloaded ones - All php-gtk programs have the same icon, the user will re-recognize a new php-gtk script as a runnable application faster - You can run php-gtk applications just with "exec <scriptname>.<extension>", because windows knows that it shall open it with php-gtk For that reasons I would like to see a fixed file extension for executable php-gtk scripts. Normal class and include files shall keep ".inc" or ".php" because they can't be started. I vote for ".php-gtk" - it's the most obvious thing. Other developers use things like ".dgk" for "php-gtk application in
development" and ".pgk" for "php-gtk program", but that's too far for me. Just the ".php" makes no distinction between "normal" server php files and desktop php apps. The fixed extension would make it possible to register the php-gtk file type already at the php-gtk installation, giving the option to make a "open in shell" context menu extension for debugging this files. And the samples shipped with php-gtk can be tested immediately after installation without the command window. Think about it.
I did about 4 months ago. I installed PHP-GTK on my computer and assigned the extension .gtk for it. Now I just have to click m< .gtk 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. But you are right: It would be great to have a PHP-GTK isntaller that does all the work and I can deliver my programms as a .gtk file (or .whatever) and they just have to click it. This is the part I miss most about PHP-GTK... 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. I think your idea is good for PHP-GTK-applications that have no special icon assigned to it but not for all applications by default. But to say something positive: I think that PHP-GTK is one of the best projects around PHP (along with PHP2C converter and compiler). I know C,C++ and Java and I have to say: I love PHP. The last barrier for PHP are dummy-proof client-side applications and if that barrier falls: Heaven on earth.... So stay tuned and go on, the world is waiting (and if it is not: at lest I do). Michael H.

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