RE: [PHP-GTK] php-gtk file extension
| From: | Frank M. Kromann | Date: | Thu, 06 Nov 2003 07:40:11 +0000 |
| Subject: | RE: [PHP-GTK] php-gtk file extension | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-4091@lists.php.net to get a copy of this message | ||
Hi Steph,
We had this discussion back when we introduced php4. At thet posint most
users were using .php3 as the extension, but most users shifted to use
php. This will make it much easier to switch to php5 when that is
released and you don't have to change any file names.
An application written for GTK2 should check to see if that version is
installed. Either at install time or at runtime.
- Frank
>
> <snip>
> > Asuming that every developper will adapt to a generic file extension
is
> > far fetched.
> </snip>
>
> Why so?
>
> This is really something that needs to be discussed between everyone in
the
> community IMHO. It's okay for now to keep on using .php as the
extension
> (because, as you say, these are .php files) but there's no way for an
end
> user to distinguish between PHP files for the server and PHP-GTK files.
The
> file type settings in win32 can't tell the difference either. What
happens
> when PHP-GTK2 arrives and we have something that people are deploying
for
> more serious development?
>
> I like Simon's idea of having a separate file extension name when using
the
> dos screen. Not sure about having 3+ letters in there tho', it's kinda
> non-traditional even if we all know it's not important these days..
>
> I for one will continue to use .php for all my script files.
> > Afterall a script that uses the PHP-GTK extension is still a php
script. I
> > would not use .php-mssql for scripts that uses the mssql extension,
and
> > how would you name a script that uses sevral extensions ?
>
> It's not the same thing.. as you know, running a PHP-GTK app through a
> server is distinctly unfriendly :)
>
> > If you are planning to run your PHP-GTK applications on a large number
of
> > client maschines, where the user is unable to install PHP, you would
have
> > to create an installer and you would have to make sure to check for
an
> > existing version of php as the extensions and other libraries depend
on
> > the right version of php.
>
> True, but that's easily done. As is upgrading the version of
php/php-gtk
> where appropriate.
>
> - Steph
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>