[cross posting to php-dev]

On Fri, Mar 08, 2002 at 03:58:55PM +0100, Christoph Muehlmann wrote : 
> Point 1: You have to know what system PHP runs on, to include the 
> php-gtk-module (.so or .dll). Now lets say theres a third OS, where the 
> module ends on .xyz - this is a little big problem, because I have to know 
> that - but perhaps I don't. It would be better, if you have to load 
> "php-gtk" - and PHP itself adds the correct .dll or .so or .xyz or 
> whatever.

    I was sitting last year on the toilet too and had the same
    thought because it would be ueberkewl to have an independent
    facility to load modules (just no need to specify the
    extension type as the host system knows it better anyway).
    Anyway, it would be a big BC problem. But on the other hand,
    the dl() function could be rewritten to be smart and
    automagically append the right extension if you don't provide
    any which would most likely not break BC.

> Point 2: The bigger problem are the differences between Linux and Windows, 
> if you use PHP on your Desktop: Home-Directory under Linux, 
> Desktop-Directories under Linux (Gnome, KDE,...) and Windows and so on. 
> Perhaps it would be good to implement functions/methonds for the different 
> OSes in a way PEAR does for example for the different types of databases.

    Or just use PEAR from within PHP-GTK (did what with success
    in the past). And it isn't hard to provide logic for either
    acess to the different filesystem; in fact I used this to
    implment (some kind of) enhanced file selection only written
    in PHP-GTK.

> I think it is very important to think and discuss about that, if PHP and 
> PHP-GTK shall have big success. Some of the Problems are more 
> PHP-general-related, some more PEAR (there's a System-Class), but its all 
> also gtk-related in some way...

    Things you've addresses are, IMO, in no way related to
    PHP-GTK (it just came up your mind because you were using
    PHP first time for system interoperability it seems); but
    it's a general PHP story.

    - Markus

-- 
Please always Cc to me when replying to me on the lists.
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to