Re: need help parsing named.conf file
| From: | Robby Russell | Date: | Sun, 13 Feb 2005 18:52:36 +0000 |
| Subject: | Re: need help parsing named.conf file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-208613@lists.php.net to get a copy of this message | ||
On Sun, 2005-02-13 at 16:46 +0100, Torsten Rosenberger wrote:
> Hello
>
> is there a way to parse the named.conf file with preg_match_all to get
> back an array which looks like
>
> [options][directory] = '/var/lib/named'
> [options][forwoarder] = '192.168.0.2'
> [zone][mydomain.com][type] = 'master'
> [zone][mydomain.com][notify] = 'yes'
> [zone][domain2.com][type] = 'slave'
> .
> .
You might try googling for some existing classes that do this.
http://sourceforge.net/projects/phpbind/
--
/***************************************
* Robby Russell | Owner.Developer.Geek
* PLANET ARGON | www.planetargon.com
* Portland, OR | robby@planetargon.com
* 503.351.4730 | blog.planetargon.com
* PHP/PostgreSQL Hosting & Development
* --- Now hosting Ruby on Rails Apps ---
****************************************/