title: Reading and writting from an ini file (Config_Lite)
body: <p>Alright so I've read around for a little while and so far the best solution I've found so far is: <a href="https://stackoverflow.com/questions/5695145/how-to-read-and-write-to-an-ini-file-with-php">How to read and write to an ini file with PHP</a></p>
  
  <p>I've installed the pear package. included the required file initiated the class. as shown at:
  <a href="https://github.com/pear/Config_Lite/blob/master/docs/examples" rel="nofollow noreferrer">https://github.com/pear/Config_Lite/blob/master/docs/examples</a></p>
  
  <p>However i am having troubles getting the variable.</p>
  
  <p>this is my ini file:</p>
  
  <pre><code>[Account]
  acct1.UserName = something1
  acct1.Password = something2
  acct1.Signature = something3
  acct1.AppId = something4
  # Subject is optional and is required only in case of third party authorization 
  acct1.Subject = 
  </code></pre>
  
  <p>This is what i tried so far:</p>
  
  <pre><code>$config = new Config_Lite('$filename');
  echo $config-&gt;get('Account', 'acct1.UserName');
  </code></pre>
  
  <p>It did not work and returned an error.</p>
  
  <p>Thanks in advanced.</p>