Re: Nested configurations

From: Date: Tue, 14 Mar 2006 20:19:50 +0000
Subject: Re: Nested configurations
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-41785@lists.php.net to get a copy of this message
bertrand Gugger wrote: >Hello, >Searching some tool to isolate configuration from code. >One goal is to present nicely the possibilities (comments as in any >configuration file). >Right handled, there could also give some security considerations. > >I love the .ini way. >That's just not enough. >A configuration is not only linear. >parse_ini_file() gives you , roughly, only 2 dimensions and only scalars >as values. > >I know I should further look in PEAR::Config ... >(I don't want all formats in there and I'm reluctant to augment >dependencies) > >One target, as an example, is to make Text_Wiki configuration easier. >I did a try in the Text_Wiki_BBCode clone to HTML_BBCodeParser >http://cvs.php.net/viewcvs.cgi/pear/Text_Wiki/doc/ the >*BBCodeParser* stuff >the way the ini is parsed ... I know, it's hacked ! I wanted nested >confs and array values ! > >What should I do to get it more general ? Use a php array. -- Bertrand Mansion Mamasam Tel : +33 1 48 89 88 26 http://www.mamasam.com Creative Internet Solutions

« previous php.pear.dev (#41785) next »