Re: Problem using Config function writeDatasrc
| From: | Matthias Otto | Date: | Fri, 27 Oct 2006 14:58:19 +0000 |
| Subject: | Re: Problem using Config function writeDatasrc | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25660@lists.php.net to get a copy of this message | ||
Thanks! I had just found the dependency problem.
1) But now I realy have a problem with writeDatasrc function. It doesn't write. I read different examples in the manual and from other internet sources (devshed for example) and made up the following code:
<?php
include ('Config.php');
$config = new Config();
$root =& $config->parseConfig( "./config/config.ini", 'inifile' );
echo "<p>";
print_r ($root->toArray ());
echo "</p>";
$root->writeDatasrc( './config2.ini', 'inifile' );
?>
This skript shows the correct array = ini-file content. But it doesn't generate a new file config2.ini. No .ini and no .xml (the xml type is what I really want).
2) Where do I find dependency information? It was just guessing that I found the solution. I can't find it in the manual and not on pear.php.net.