News Feed

News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way
Using PHP Configuration Patterns Properly
April 16, 2014 @ 11:52:11

On today they have a new post showing different configuration patterns for getting localized settings into your applications. They show the use of INI files, PHP scripts, text files, XML data and a database call.

PHP is a cross platform language. It is a server based application so we must think about the configuration settings of the PHP software. There are various ways of creating configurable PHP applications. The configuration flexibility comes as a built in feature in PHP. But we must understand the requirement clearly before making an application configurable. This article explores different PHP configuration patterns and their implementation.

For each of the options mentioned, there's a brief description of what the method is, some of the common uses and a code example showing a basic implementation. The database pattern is the only one without a code example as the database interface varies widely from application to application.

0 comments voice your opinion now!
configuration pattern ini script text xml database


blog comments powered by Disqus

Similar Posts

David\'s Blog: PHP, XML, and Unicode

IBM developerWorks: Use DB2 native XML with PHP

Content with Style: Getting phpunit to work with MAMP

Dave Dash's Blog: Installing a PHP that can do symfony+doctrine on Dreamhost making a radar loop with PHP

Community Events

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

configure series threedevsandamaybe testing community podcast refactor laravel code developer opinion release language list framework introduction symfony2 unittest install interview

All content copyright, 2014 :: - Powered by the Solar PHP Framework