Answer the question
In order to leave comments, you need to log in
How to store articles in a web project?
There is a web project, you need to add an article section. Where to store texts of articles? In files? In the base? XML?
I would be grateful for advice and links.
Answer the question
In order to leave comments, you need to log in
The base is quite comfortable. If there is an article editor interface that uses bb-codes or some virtual tags, then you can store in the database both the version with the original tags and the “prerendered” version in HTML, ready for output, to speed up work.
I join peter23, but I would like to add that it is better to immediately set the field values \u200b\u200bto store at least MEDIUMTEXT. Because there were cases when, out of habit, they put TEXT and received cropped articles! Well, as an addition, no one interferes with caching, because articles are not edited so often, or rather, they are written “for centuries”, but for greater safety, the original should be in the database!
PS here the database means MySQL
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question