Jump to content


How to create simple CMS without database

  • Please log in to reply
6 replies to this topic

#1 Rita_Ruah


    Advanced Member

  • Members
  • PipPipPip
  • 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


    Advanced Member

  • Members
  • PipPipPip
  • 3,164 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.

A simple password hash :

function makePass($word=''){
  $dbSalt = '$2a$07$'.substr(hash('whirlpool',$word),0,22);
  $dbPass = crypt($word, $dbSalt);
 return substr($dbPass,12);


#3 Psycho


    Advanced Member

  • Moderators
  • 11,309 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


    Advanced Member

  • Members
  • PipPipPip
  • 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


    Advanced Member

  • Moderators
  • 745 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 everday!

#6 mac_gyver


    Staff Alumni

  • Staff Alumni
  • 3,503 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


    Advanced Member

  • Members
  • PipPipPip
  • 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