RE: [PEAR-DEV] [rfc] permissions managment
| From: | Lukas Smith | Date: | Tue, 13 Aug 2002 17:13:56 +0000 |
| Subject: | RE: [PEAR-DEV] [rfc] permissions managment | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-8389@lists.php.net to get a copy of this message | ||
XML has the advantage of being easier for other languages to work with.
In terms of speed this is the first thing that got me woried too.
But Markus said that you can also pass an array to it. So all you have
to do is cache the parsed xml and pass that to LiveUser instead of an
xml file.
Regards,
Lukas
> -----Original Message-----
> From: Bertrand Mansion [mailto:bmansion@mamasam.com]
> Sent: Tuesday, August 13, 2002 6:45 PM
> To: smith@dybnet.de; pear-dev@lists.php.net
> Subject: Re: [PEAR-DEV] [rfc] permissions managment
>
> <smith@dybnet.de> wrote :
>
> > That is just a documentation thing.
> > To ensure that we have separate docs for simple and complex.
> >
> > Simple from a programming point of view will just be an xml file
with
> > the necessary configurations or even better will be the default for
> > complex.
> > All features that "make" it "complex" will have to be enabled.
>
> I would favour:
> 1. a .ini file (php style like php.ini) which can be parsed using the
php
> parse_ini_file() function.
> 2. a standard php file with regular variable ($...).
> They are much faster to parse than xml.
>
> I don't see the use to have xml in the first place.
> BTW, I now have some time to work on the Config class. It should be
able
> to
> parse and write these configuration files. Maybe it will be possible
to
> input a .ini file and output a .xml file :) Not sure on how to do it
yet
> but
> I'll think about it.
>
> Bertrand Mansion
> Mamasam
>
>
> --
> PEAR Development Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php