title: read, edit & save config files (php)
body: <p>I have two <strong>configuration files</strong>. One is <strong>ini</strong> one is <strong>php</strong>. They look like below. I need to <strong>update the database file name</strong> but the rest of the files must be <strong>unchanged</strong>. Any idea how to do so?</p>
  
  <p>config.ini</p>
  
  <pre><code>; Turning Debugging on
  [test]
  developer = true
  
  ; Production site configuration data
  [production]
  database.params.dbname   = /var/lib/firebird/data/radek_db.gdb
  </code></pre>
  
  <p>and setting.php</p>
  
  <pre><code>&lt;?php
  /**
  The settings file
  */
  
  #This will be done automatically if u want to override it uncomment the next line few lines
  /*
      $Path   = 'mainline';
  
  #Database to connect to:
      $Database        =       "radek_db";
  ?&gt;
  </code></pre>