PHP Các Anthology: 101 Essential Tips, Tricks & Hacks
In the “old days” of the Internet, most web pages were nothing more than text files
containing HTML. When people visited your site, your web server simply made the
file available to their browsers. This approach started out fine, but as web sites grew,
and issues such as design and navigation became more important, developers found
that maintaining consistency across hundreds of HTML files was becoming a massive
headache. To solve this problem, it became popular to separate variable content
(articles, news items, and so on) from the static elements of the site—its design and
layout.
If a database is used as a repository to store variable content,...