<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 20 Nov 2008 08:00:06 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Eirik Hoem's Blog: Simple config management for PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10304</guid>
      <link>http://www.phpdeveloper.org/news/10304</link>
      <description><![CDATA[<p>
In <a href="http://blog.eirikhoem.net/index.php/2008/05/30/simple-config-management-for-php/">a new post</a> to his blog today, <i>Eirik Hoem</i> gives an example of using the parse_ini_file function to work with .ini files as configuration for your application.
</p>
<blockquote>
When doing complex applications it's often nice to have some sort of system for handling settings. PHP has a nice function called parse_ini_file which can be used to create a basic but still usable setting file feature. A simple class which loads the configuration file and offers some methods to retrieve the values for a given key is all that's needed.
</blockquote>
<p>
His example code gives a sample ini file with database connection information and a MyConfigClass that parses the file and can get or set values in it.
</p>
]]></description>
      <pubDate>Fri, 30 May 2008 07:54:50 -0500</pubDate>
    </item>
  </channel>
</rss>
