News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Brandon Savage's Blog:
Custom Apps Some Strategies For Easy Configuration Files
September 16, 2009 @ 07:59:02

In this new post to his blog today Brandon Savage looks at configuration options for PHP apps and gives some examples to help you get the thought process started for your development.

One of the decisions that has to be made each time an application is written for distribution is how best to set up the configuration files. There are a number of different approaches taken to this: some opt to use the define() function and define constants, while others use large arrays.

He points out a few "overlooked options" that some developers might no consider when working with configuration files like class constants and ini files (which PHP can parse natively). A few code snippets are included to show examples of them in use.

0 comments voice your opinion now!
configuration class constant ini


blog comments powered by Disqus

Similar Posts

Jeez Tech: Using APIs With PHP? Here Are Your Classes

Maarten Balliauw's Blog: Office 2007 SpreadsheetML classes in PHP

Zend Developer Zone: Paging Data Sets With PEAR Pager

Sameer Borate's Blog: NewYork Times Bestseller API access in PHP

Matthew Weir O'Phinney's Blog: exuberant ctags with PHP in Vim


Community Events





Don't see your event here?
Let us know!


laravel bugfix conference api deployment library language podcast series list tips symfony developer release community introduction zendserver voicesoftheelephpant framework interview

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework