Re: Pear Configuration
| From: | Tomas V.V.Cox | Date: | Thu, 26 Jul 2001 17:43:57 +0000 |
| Subject: | Re: Pear Configuration | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-1069@lists.php.net to get a copy of this message | ||
On Thursday 26 July 2001 16:50, yavor shahpasov wrote:
> I remember a discussion about putting PEAR configuration in php.ini.
> I'm tired of writing PEAR::setErrorHandling every time I start
> coding.
Why not simply put this in a main include file?
> Here are a few options.
> a) Each PEAR class has it's own config file (i.e. PEAR.ini) and it
> reads it on start, use PEAR::Config to write read
> b) All classes have one config file namely PEAR.ini with different
> sections for each class/package
> c) Use php.ini
>
> Ideas if using a or b
> *) make shell scripts / web interface for configuring PEAR
> *) Pear should provide methods to register an option
> getParam/setParam methods
> *) Configuration should be loaded/save with constructors/destructors
>
You have the Ini config managment class, so you could build such system
in a moment. IMO having that in php.ini is too much.
Tomas V.V.Cox