Re: Reading a conf file
| From: | Lars Torben Wilson | Date: | Wed, 27 Feb 2002 21:59:33 +0000 |
| Subject: | Re: Reading a conf file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-86487@lists.php.net to get a copy of this message | ||
On Wed, 2002-02-27 at 13:43, Brandon Orther wrote:
> Does anyone have a good idea of how I can pull the info out of a conf
> file setup like this? Maybe pull it into an array.
>
>
> ## Conf File ##
> <ServerName>
> domain.websites.com
> </ServerName>
> <ServerName>
> newsite.worldwideweb.net
> </ServerName>
>
> So I would get the domain.websites.com and newsite.worldwideweb.net
Well, if the conf file is well-formed XML and not some goofy pseudo-XML
format--I've seen more of those than I care to remember ;)--, your best
bet would probably be the WDDX extension: http://www.php.net/wddx.
Cheers,
Torben
--
Torben Wilson <torben@php.net>
http://www.thebuttlesschaps.com
http://www.hybrid17.com
http://www.inflatableeye.com
+1.604.709.0506