Jump to content


How to create simple CMS without database

  • Please log in to reply
6 replies to this topic

#1 Rita_Ruah

  • Members
  • PipPipPip
  • Advanced Member
  • 36 posts

Posted 03 September 2013 - 02:03 PM

Hello, I haven't found any tutorial regarding this topic, how should I do this? Should the backoffice generate xml?


It's a very simple site, but I don't want to use a db.



#2 Muddy_Funster

  • Members
  • PipPipPip
  • Advanced Member
  • 3,383 posts

Posted 03 September 2013 - 02:41 PM

why would you not want to use a database? :confused:
Without a database you are going to be depandant on flat tile storage and filesystem IO commands.

Please: "This doesn't work..." is not a question.  We're not the government: we don't have anything to view what your doing on your computer.  Help us help you by asking a good question.


"Things needed to ask a "good" question:

  • A description of the context of your issue (Optional but can be a huge help in certain circumstances)
  • What is the actual problem (Mandatory)
  • What does the code actually do (Mandatory)
  • What you think the code should do / What you want the code to do (Mandatory)
  • What things have you tried so far (Optional, but missing it out just wastes your time and ours)
  • The actual code as you are running it - minus any personal information like Database Login Credentials (Mandatory - don't just post pseudo, the vast majority of issues are syntax and not logic)
  • As much info about your development environment as you can give - even if it's just letting us know you are using a hosting provider instead of a local install (Optional, but some questions can not be answered without it.)

#3 Psycho

  • Moderators
  • Move along, nothing to see here
  • 11,846 posts
  • LocationCanada

Posted 03 September 2013 - 03:32 PM

There really is no way to provide a good answer because without knowing all the details of what EXACTLY you need there's no way to provide any guidance. For example, if all you need to allow is modification of text on existing pages you could probably build something yourself. And, doing that with flat-files is an acceptable solution, in my opinion.. However, if you need to allow changes to styles of that text it gets a little more complicated. And, if you need to allow changes to positioning, images, etc. it gets even more complicated.

The quality of the responses received is directly proportional to the quality of the question asked.

I do not always test the code I provide, so there may be some syntax errors. In 99% of all cases I found the solution to your problem here: http://www.php.net

#4 Rita_Ruah

  • Members
  • PipPipPip
  • Advanced Member
  • 36 posts

Posted 05 September 2013 - 10:23 AM

I want to create a simple cms with a simple backoffice so that my parents can use it to add posts to their online cooking book.

As I love new ideas, I would want to create a simple cms that instead of a database would use a xml file or something.


What main features should I seek, in my head:


- 2 or 3 templates

- Security (Admin login)

- Simple way to add posts

- Simple way to edit css (when saving it would save a new css file)


Thanks for your feedback

#5 fastsol

  • Moderators
  • Advanced Member
  • 789 posts
  • LocationMinnesota

Posted 05 September 2013 - 11:49 AM

You can make a simple backoffice scenario just as easy with a db, if not easier than with flat files.  A secure login system is much harder to achieve with out a db.  Is there a specific reason you don't want to use a db?  You could use a prebuilt system like wordpress if you just need simple blog posting and file editing.

You never know everything, I learn everyday!

#6 mac_gyver

  • Staff Alumni
  • Staff Alumni
  • 4,071 posts

Posted 05 September 2013 - 02:37 PM

moving this thread to the Application Design forum section.

multi-purpose programming fool. well written source-code should be self-documenting. well written code should be self-troubleshooting.

#7 RobertP

  • Members
  • PipPipPip
  • Advanced Member
  • 288 posts

Posted 05 September 2013 - 07:13 PM

Ok, i strongly recommend using sqlite in your circumstance. It is a db, but it has no dependencies, except php support which i believe comes pre-installed..
u tha king Pikachu2000!!

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users