Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7739339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:29:52+00:00 2026-06-01T08:29:52+00:00

WordPress, for example, has a table with name => value rows for storing application-wide

  • 0

WordPress, for example, has a table with name => value rows for storing application-wide settings (the name of the blog, comments settings, etc.). Please note that I’m referring to settings that may be modified often during normal use of the application.

I understand why WordPress does it like that (portability: it’s easy to copy the entire database to another blog and retain settings), but is there a better way to do it for smaller applications?

I know that many frameworks, like Zend Framework for example, have a configuration file with application-wide configuration settings. Why not just dynamically modify that file at runtime to save my settings? To me, this has several advantages over database settings storage:

  • Less database use
  • Settings are easily human-editable over FTP without needing a MySQL shell or phpMyAdmin instance
  • Settings files can easily be backed up and restored

On the other hand, the biggest complication I can think of is that of concurrency. The file will need to be locked while changes are being made.

What is the preferred way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T08:29:53+00:00Added an answer on June 1, 2026 at 8:29 am

    DB table advantages

    • Settings are global to all web servers sharing the same database. No need for file replication/network file system
    • The application most likely already uses database, no extra setup
    • No dependencies on file system
    • Easier to cache (maybe there is already some generic DB caching layer?)
    • Handles concurrency
    • The application may already have a framework or a way to handle CRUD of any database table (creating GUI is easy)
    • Transparent backup with the rest of your application
    • Can be strongly typed if you have several value columns of different types used exclusively

    …and disadvantages

    • you need a tool or SQL knowledge to maintain it
    • might have a worse performance
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

WordPress has been installed as a blog into osCommerce. I'm trying to get the
I have a friend with a Japanese blog, using wordpress, he has the pretty
I'm helping someone with a Wordpress blog which at one time was at http://example.com/example/
In WordPress, the _postmeta table has a column meta_value with the longtext data type.
There is a blog , powered by Wordpress, which has valid RSS feed (opens
I used this example (http://reecon.wordpress.com/2010/04/25/uploading-files-to-http-server-using-post-android-sdk/) to upload file from android device to server, it
In Wordpress it's possible to create own WP Querys for the loop. An example
How do I add my own static HTML pages to WordPress? For example, let's
How can I changing/ adding code of the Themes with a wordpress plugin? Example:
Wordpress has a filter that automatically add paragraphs to posts. I can remove this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.