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 853363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:44:51+00:00 2026-05-15T07:44:51+00:00

I am coding a forum system using PHP. I am currently storing a threads

  • 0

I am coding a forum system using PHP.

I am currently storing a threads ID, title, author, views and other attributes in an SQL database and then storing the thread body (the HTML and BBcode) in text files inside a folder named after the thread ID.

In practise it’s really simple to grab the database values then just grab the thread body from the text file, but I was wondering if this is the ‘proper way’? I have personally no problems doing this but if it turns out it is massively inefficient and I should instead store both the thread body HTML and BBcode in the database instead then I will change.

However, to me it seems wrong to store such a (very possibly) huge string of multi-line text along with lots of different characters in a database – I was taught that databases are more for short field ‘values’ rather than website content.

I would just like a definitive answer to this because it’s been bugging me for ages as to wherever I’ve been doing it properly.

Does anyone know how popular forum systems store threads?

Added
Thanks for the answers, so it’s best to store thread content in the database, what field type should i use?
Also what about replies? Another table which has the thread ID and comment ID then the comment body?
I’m new to this database stuff so thanks for your help.

  • 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-05-15T07:44:52+00:00Added an answer on May 15, 2026 at 7:44 am

    Confluence (a commercial wiki) stores the entire page content within a single column.

    The reason to store large text in the database is:

    1. There’s (hopefully) no disconnect between the value and the record(s) the text is associated with
    2. There are technologies like Full Text Search (FTS) to make finding specific strings in large amounts of text
    3. Simplified backup & restore process
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm designing and coding a knowledge based community sharing system (forum, Q&A, article sharing
I am writing forum app on Django using custom session/auth/users/acl system. One of goals
I decided I'd like to use django's model system rather than coding raw SQL
I'm coding a forum system and I'm trying to get the last post in
I'm using PHP 4.3.9, Apache/2.0.52 I'm trying to get a login system working that
I am working on some form coding in PHP, and I have everything working
I'm coding a windows form using WPF, XAML, C#. I have a Frame object
I have a minor concern: I'm currently coding a sign up form and I
I'm coding in VS2008 using C#. On my form, I have a ListView control.
I'm coding a templating system that is supposed to support easily converting any old

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.