gnope php gtk gui gnope.org  

PHP-GTK and PHP_Archive

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



Joined: 12 Jun 2006
Posts: 113
Location: hemel / UK

PostPosted: Thu Nov 09, 2006 11:51 am    Post subject: PHP-GTK and PHP_Archive Reply with quote

as some already know i have been playing with php_archive.
I have posted more about this in my blog.
http://leonpegg.blogspot.com
I will be writing a more detailed blog entry soon.

Please note i did not write this game just modifyed it to work with php_archive.

regards leon pegg
Back to top
MaGdev



Joined: 07 Nov 2006
Posts: 5
Location: Bremerhaven

PostPosted: Thu Nov 09, 2006 7:02 pm    Post subject: Reply with quote

Hello leon,
and hello Forum, since this is my first post out here,

Iīve played around with PHP_Archive, Glade and PHP-Gtk2 also. My first walk to learn something about this was to develop an PHP-Gtk2-GUI to build Phar-Archives Iīve called PharBuilder and released under BSD-License.

The package includes:
- the sources of the app
- a compressed Phar-Archive of the app
- a BaseClass (called Gtk2_GladeBaseApp) which is able to load a *.glade-file from a stream (īcause GladeXML cannot do this)

The code is not very clean, but the tools works fine on Linux...

Feel free to play around with this,

Greetings,
Marco
Back to top
cweiske



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

PostPosted: Thu Nov 09, 2006 8:19 pm    Post subject: Reply with quote

MaGdev wrote:
build Phar-Archives Iīve called PharBuilder and released under BSD-License.

It fails with not finding Config.php
Back to top
MaGdev



Joined: 07 Nov 2006
Posts: 5
Location: Bremerhaven

PostPosted: Thu Nov 09, 2006 8:25 pm    Post subject: Reply with quote

hello cweiske,

try to install PEAR::Config Smile

Greets,
marco
Back to top
MaGdev



Joined: 07 Nov 2006
Posts: 5
Location: Bremerhaven

PostPosted: Thu Nov 09, 2006 9:21 pm    Post subject: Reply with quote

Update: creation of shellscript/batchfile works

Requirements:
pear/Config
pear/PHP_Archive (of course)

Greetings,
marco
Back to top
cweiske



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

PostPosted: Thu Nov 09, 2006 9:31 pm    Post subject: Reply with quote

It would be cool if there was a script that converts pear/gnope packages into a .phar (maybe even with dependencies)
Back to top
MaGdev



Joined: 07 Nov 2006
Posts: 5
Location: Bremerhaven

PostPosted: Thu Nov 09, 2006 10:12 pm    Post subject: Reply with quote

Thatīs a good idea, but... dependencies like PEAR should IMHO loaded from within the filesystem and not from the PHAR-Archive. Maybe an integrated installer which is able to install dependencies on first start would be better...

A little hint:
The magic-require method changes statements like
Code:

require_once 'Foo/Bar.php',

to
Code:

require_once 'phar://Foo/Bar.php';

Statements with brackets around the filename will be leaved as they are, so this
Code:

require_once('Foo/Bar.php');

would be loaded from the local filesystem. Itīs a possibility to make a difference between filesystem and PHAR-Archive.

First thing to do is IMHO some refactorings - remember: Itīs more like a playground for self-education than a program Smile
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.