V
V
Vlad Fastov2021-09-05 20:06:38
Web development
Vlad Fastov, 2021-09-05 20:06:38

Where is the best place to store content?

Let's say the site has a bunch of articles (separate html), and it turns out article = 100 html files, how best to organize the storage of these articles, since I heard that storing entire pages in the database is stupid, plus updating content is much more difficult to do than through CMS.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Everybody_Lies, 2021-09-05
@Everybody_Lies

if you have a completely static site with html pages, then store them in them.
If (judging by the tags in the question) you have a dynamic site in php, then store the articles themselves in the database, and then display them.
make a request to the database that receives the articles, then loop them out with not 100 html files, but 1 php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question