News Feed
Sections




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

PHPBuilder.com:
Using PHP Configuration Patterns Properly
April 16, 2014 @ 11:52:11

On PHPBuilder.com 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

Link: http://www.phpbuilder.com/articles/application-architecture/using-php-configuration-patterns-properly.html

blog comments powered by Disqus

Similar Posts

DevShed.com: The Singleton and Factory Patterns in PHP - Building a Form Generator Class

Zend Developer Zone: Getting Started with MongoDB and PHP

Zend Developer Zone: Live Blogging From php/db|works 2006

Zend Developer Zone: Streamline Working with XML in PHP Using Service Data Objects (Part 1 & 2)

PHPBuilder.com: Using PHP Configuration Patterns Properly


Community Events

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


podcast framework php7 introduction version series laravel5 api opinion interview language voicesoftheelephpant example laravel unittest library release conference extension community

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