Pages to database or file?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheServant
    Recognized Expert Top Contributor
    • Feb 2008
    • 1168

    Pages to database or file?

    Hi all,
    Long time no see, but getting back into it! Anyway, I have started writing a simple CMS for some of my websites which will allow my clients to manage pages and content themselves. I have made an online editor for pages (very simple using BBcode), but they keep asking for new pages (or deleting old pages).
    I have a general idea but I can't work out whether I want to have pages made and stored in a database (which would be easier), or create and edit actual files (I think faster for server requests - fopen(), etc...).
    I have been searching for ages to get this answered, but am yet to get anyone specifically identify this! What are your thoughts?
  • TheServant
    Recognized Expert Top Contributor
    • Feb 2008
    • 1168

    #2
    I am leaning towards going the database route, and will continue on that path unless anyone has any strong opinions to the contrary?

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #3
      Definitely go with using a database.

      Mark.

      Comment

      • TheServant
        Recognized Expert Top Contributor
        • Feb 2008
        • 1168

        #4
        Thanks Mark... I was going to go through all the reasons for each, but after starting I realise that there are some function which would be very difficult, if not impossible, without using the databse method. Regardless of any speed saving, I agree that databasing is the way to go.

        Comment

        • hsriat
          Recognized Expert Top Contributor
          • Jan 2008
          • 1653

          #5
          Originally posted by TheServant
          Hi all,
          Long time no see, but getting back into it! Anyway, I have started writing a simple CMS for some of my websites which will allow my clients to manage pages and content themselves. I have made an online editor for pages (very simple using BBcode), but they keep asking for new pages (or deleting old pages).
          I have a general idea but I can't work out whether I want to have pages made and stored in a database (which would be easier), or create and edit actual files (I think faster for server requests - fopen(), etc...).
          I have been searching for ages to get this answered, but am yet to get anyone specifically identify this! What are your thoughts?
          XML can be another option.

          Comment

          Working...