| View previous topic :: View next topic |
| Author |
Message |
leon_pegg
Joined: 12 Jun 2006 Posts: 113 Location: hemel / UK
|
Posted: Thu Nov 09, 2006 11:51 am Post subject: PHP-GTK and PHP_Archive |
|
|
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
|
Posted: Thu Nov 09, 2006 7:02 pm Post subject: |
|
|
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
|
Posted: Thu Nov 09, 2006 8:19 pm Post subject: |
|
|
| 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
|
Posted: Thu Nov 09, 2006 8:25 pm Post subject: |
|
|
hello cweiske,
try to install PEAR::Config
Greets,
marco |
|
| Back to top |
|
 |
MaGdev
Joined: 07 Nov 2006 Posts: 5 Location: Bremerhaven
|
Posted: Thu Nov 09, 2006 9:21 pm Post subject: |
|
|
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
|
Posted: Thu Nov 09, 2006 9:31 pm Post subject: |
|
|
| 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
|
Posted: Thu Nov 09, 2006 10:12 pm Post subject: |
|
|
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  |
|
| Back to top |
|
 |
|