A
A
Antoniero2010-11-26 22:30:41
Web development
Antoniero, 2010-11-26 22:30:41

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

2 answer(s)
P
peter23, 2010-11-26
@peter23

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.

N
NiGP, 2010-11-27
@NiGP

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 question

Ask a Question

731 491 924 answers to any question