From:             lee at semel dot net
Operating system: 
PHP version:      Irrelevant
PHP Bug Type:     Feature/Change Request
Bug description:  Packaging PHP Applications for Easy Distribution

Description:
------------
Since PHP is often used for distributing entire applications at once, it
would be great to have a mechanism (similar to Java's WAR files) to make
it easy to package, distribute, install, and configure them.

I propose implementing a system for easily packaging PHP applications.  A
.PAR file (PHP ARchive) file is a zipfile containing the following:
* All the images, includes, and php files that make up the PHP
application.
* a PHP.INI file configured specific to the application.  PHP would ignore
values from the master PHP.INI file and use the settings from the PHP.INI
file inside the archive. 
* a WEB.XML (or WEB.INI) file defining default configuration parameters
speicifc to the application.  Configuration parameters should be able to
be overridden by an external file, making them very easy to edit, and to
provide an easy way to set up server-specific configurations when
installing an application in multiple places.

The application would be accessed through the browser at
http://servername:port/nameofarchive/, or at another location specified by
the administrator.

Wioth this system, each application could have its own configuration,
include path, and libraries, and installing an application becomes a
matter of dropping the file into your document root.  If your ISP doesn't
let you change PHP.ini, simply installing the PAR file will set everything
perfectly for you.  No more having to worry if magic_quotes_gpc or
register_globals is set correctly.  No more having to worry if PEAR is
installed.

For more info on how Java does it:
http://access1.sun.com/techarticles/simple.WAR.html


-- 
Edit bug report at http://bugs.php.net/?id=24809&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24809&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24809&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24809&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24809&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24809&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24809&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24809&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24809&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24809&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24809&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24809&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24809&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24809&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24809&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24809&r=gnused

Reply via email to