HTML5 Canvas
Written by: Simon Sarris
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Web Driver
  3. MVVM
  4. REST
  5. ADO.NET
  1. HTML5
  2. Ajax
  3. jQuery Selectors
  4. CSS Part 1
  5. Git

Link Details

Link 83954 thumbnail
User 283631 avatar

By eirikhm
via blog.eirikhoem.net
Published: May 30 2008 / 10:50

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
  • 7
  • 3
  • 1500
  • 0

Comments

Add your comment
User 279767 avatar

topbit replied ago:

0 votes Vote down Vote up Reply

Zend_Config allows access as an object, or array, and also allows for extendable/overrideable sections:
[live]
db.host = 127.0.0.1
db.password = secret

[dev: live]
db.password =password

User 152955 avatar

Gregg Bolinger replied ago:

0 votes Vote down Vote up Reply

The fact that something like this makes it to the front page of DZone makes me laugh and you can tell its entirely based on Clicks (338) but notice there are only 6 up votes. It would be like me writing an article on java.util.Properties, everyone clicking it thinking I might show something worth while, rolling their eyes, and moving on.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (7)



Voters Against This Link (3)