ID:          24809
 Updated by:  [EMAIL PROTECTED]
 Reported By: lee at semel dot net
-Status:      Open
+Status:      Wont fix
 Bug Type:    Feature/Change Request
 PHP Version: Irrelevant
 New Comment:

We already have PEAR for this. (pear install)




Previous Comments:
------------------------------------------------------------------------

[2003-07-25 16:28:46] lee at semel dot net

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 this bug report at http://bugs.php.net/?id=24809&edit=1

Reply via email to