gnope php gtk gui gnope.org  

what's the PHP-GTK 2 Install impact in a system

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
will.garcia



Joined: 28 Apr 2006
Posts: 8

PostPosted: Wed May 03, 2006 12:38 pm    Post subject: what's the PHP-GTK 2 Install impact in a system Reply with quote

Hi,

I am really inexperimented in installation' procedures and I can't understand the uses of the lot of dll and other files installed by gnope (immodules, pixbufloaders, pango,...)

1. Can anybody explain me the architecture of Gnope directories, the role of mains dll ?

2. Is PHP-GTK2 writing some entry in my :
- windows registry ?
- environment path ?

3. I can see a manual installation in Windows of PHP-GTK2 at http://gtk.php.net/wiki/PhpGtk2/InstallingOnWindows#manual

With the goal to maintain and distribute easily a PHP-GTK2 application, what's the way to obtain the most "clean" installation of PHP-GTK2 (without a lot of libraries that I will not use in my appli.) ?

For example, is it possible to copy my Windows gnope directory into a MacOS and run my PHP-GTK2 application ?? (I think the reply is no because I need to recompile php_gtk.so)

Thanks in advance,
W.GARCIA
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Wed May 03, 2006 4:27 pm    Post subject: Re: what's the PHP-GTK 2 Install impact in a system Reply with quote

will.garcia wrote:
I am really inexperimented in installation' procedures and I can't understand the uses of the lot of dll and other files installed by gnope (immodules, pixbufloaders, pango,...)

1. Can anybody explain me the architecture of Gnope directories, the role of mains dll ?

Most of the files are Gtk2 libraries. Pango, the pixbuf loaders (that allow you opening .png, .jpg and such graphic files), the immodules are all needed by gtk. PHP itself is only the extensions and the phpts.dll, php.exe, php_win.exe and the php.ini.

As the Gnope installer sets up a PEAR environment, a pearsys.ini is created in the windows path.

Quote:
2. Is PHP-GTK2 writing some entry in my :
- windows registry ?
- environment path ?

It changes the environment PATH variable so that you can type "php" or "pear" instead of having to write the whole path. It doesn't write anything in the registry. (Except that the NSIS installer writes something in to make uninstallation possible)

Quote:
With the goal to maintain and distribute easily a PHP-GTK2 application, what's the way to obtain the most "clean" installation of PHP-GTK2 (without a lot of libraries that I will not use in my appli.) ?

The method described in the readme of the win32 directory in the php-gtk sources.

Quote:
For example, is it possible to copy my Windows gnope directory into a MacOS and run my PHP-GTK2 application ?? (I think the reply is no because I need to recompile php_gtk.so)

You need a platform specific version of Gtk, PHP and PHP-Gtk, so just copying the directories doesn't work. On MacOSX, you also need an X server running that isn't needed on Windows.
Back to top
will.garcia



Joined: 28 Apr 2006
Posts: 8

PostPosted: Thu May 04, 2006 10:09 am    Post subject: Reply with quote

Thanks for your reply, it is more clear in my mind now

In fact, I am studiying the possibility to distribute a PHP-GTK2 application for professionals. So the installation procedure take a very important place.

I am perhaps out of the context of this topic but actually, I'm really seduce by the developments around PHP-GTK2 however I must realize :

1. the installation is a little complex for non computer science experimented people
2. the php scripts run in all platforms but there is no easy-driven method to make an automatic cross-platform installation of a PHP-GTK2 application
3. I will often need to update each client computer (pear updates) to be sure my application benefits of the last PHP GTK2 developments

Without rely on PHP Compilers (RoadSend,...), is PHP-GTK2 including these problematics for future versions ?

Regards,
W.GARCIA
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Thu May 04, 2006 12:45 pm    Post subject: Reply with quote

Quote:
1. the installation is a little complex for non computer science experimented people

That is the reason I created the Gnope installer for Windows. Linux distributions will have their own packages which will make installing it easy, too. Mac - don't know, somebody could make a .dmg installer

Quote:
2. the php scripts run in all platforms but there is no easy-driven method to make an automatic cross-platform installation of a PHP-GTK2 application

That doesn't work. The underlying libraries are platform-specific, so you had to ship all in one package which would be the overkill in download size. Also show me a program that can be executed on all operating systems without modifications, and without a Virtual Machine underlying. Event for Java programs, you need to install Java on the target computers.

Quote:
3. I will often need to update each client computer (pear updates) to be sure my application benefits of the last PHP GTK2 developments

You don't need to update if your program works. You can stick with the software versions you used when programming the app, as your program will work with it. Why update?
Back to top
scott



Joined: 16 Feb 2006
Posts: 35

PostPosted: Thu May 04, 2006 2:36 pm    Post subject: Reply with quote

cweiske wrote:
Quote:
3. I will often need to update each client computer (pear updates) to be sure my application benefits of the last PHP GTK2 developments

You don't need to update if your program works. You can stick with the software versions you used when programming the app, as your program will work with it. Why update?

PEAR updates don't have anything to do with PHP-GTK 2 updates.

WARNING: Shameless self promotion!!!
But, should you need to update your application and you are using a PEAR channel server, you can easily add self-updating ability to your package using PEAR_PackageUpdate_Gtk2 And because your package is distributed using a PEAR channel server, all required dependencies will be updates as well.
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Thu May 04, 2006 2:38 pm    Post subject: Reply with quote

scott wrote:
WARNING: Shameless self promotion!!!

Your package is in PEAR, and thus it's no self promotion anymore.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.