Re: JAR files for PHP-GTK?

From: Date: Mon, 24 May 2004 20:57:29 +0000
Subject: Re: JAR files for PHP-GTK?
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-4564@lists.php.net to get a copy of this message
On Mon, 24 May 2004 21:27:16 +0200 Christian Weiske <cweiske@cweiske.de> wrote: > The function should be this: > - look for index.php in zip > - if we've got none -> stop > - extract the file into own dir in tmp > - execute index.php That's pretty much what my script does. I've attached it. Note, again, that it's Linux centric and based on unzip rather than ziplib or other extension. As a side note, I've preferred to execute index.php by doing exec('php ...') rather than include(), so as not to contaminate the environment for index.php. I've solved the define of CONTAINER_ROOT by placing it in a temp PHP file which is prepended to index.php via the -d CLI option. > But there is the problem that we would need a common file extension for > the php-gtk-executable-zipfiles and like I've seen in the past (see my > posting "php-gtk file extension", posted @ 2003-11-04 15:28) it is very, > very hard to come to a common mind. As long as the archive is indeed a valid zip archive with an index.php in it, the extension doesn't really matter, except for evangelism purposes, I guess. -- Ciprian Popovici

« previous php.gtk.general (#4564) next »