logo       

Questions too pear::Config: msg#00376

php.pear.general

Subject: Questions too pear::Config

Hi NG,

I have here following problem.
I parse with pear::Config httpd.conf of Apache.

require_once('Config.php');

$datasrc = $APACHE_CONF_FILE;
$conf = new Config();
$content =& $conf->parseConfig($datasrc, 'apache');
if (PEAR::isError($content)) {
die($content->getMessage());
}

$root_content = $content->toArray('phparray', array('name' =>
Virtual1'));

I miss into $$root_content the "Comments" (For example "#Main Section").
In $content it is however contained.

How do I get "whole" contents with "Comment" in an array?

Thanks for each assistance

Stefan

--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise