need help parsing named.conf file
| From: | Torsten Rosenberger | Date: | Sun, 13 Feb 2005 15:46:18 +0000 |
| Subject: | need help parsing named.conf file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-208601@lists.php.net to get a copy of this message | ||
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'
.
.
BR/Torsten