I am looking for some PHP utility that parses Apache configuration files similar to this Perl's module: http://metacpan.org/pod/Apache::ConfigParser
Any clues?
I am looking for some PHP utility that parses Apache configuration files similar to this Perl's module: http://metacpan.org/pod/Apache::ConfigParser
Any clues?
PEAR::Config supports Apache-style config files.
Have a look at the manual http://pear.php.net/manual/en/package.configuration.config.avail-container.apache.php
$conf = new Config();
$root = $conf->parseConfig("/etc/apache2/httpd.conf", "apache");
print current($root->getItem('directive', 'Listen'))->content;
Or something like that..