PHP Classes

Best practice for global website settings

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  Best practice for global website...  
Subject:Best practice for global website...
Summary:How to store website configuration data
Messages:3
Author:TomVW
Date:2012-11-25 11:03:45
Update:2012-12-02 18:29:34
 

  1. Best practice for global website...   Reply   Report abuse  
Picture of TomVW TomVW - 2012-11-26 00:05:44
I'm creating a simple website for a club and I was wondering how to save some global configuration data without asking them to edit PHP-files.
For instance, the welcome message at the home-page or the information on the about-page should be dynamic in my point of view, and I would like to give them the option to change those pages.

My question is: how should I save this data? I can write it to a (PHP) file or a database but I'm not sure what the best practice is.
I suppose that the straight forward solution is the file option, since there will be only one about-page or one welcome message.

There are 2 replies in this thread, which are not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.