Are there any real benefits to using a RDBMS vs. flat files on a simple Web doc system (or basic CMS)?

前端 未结 9 1486
野的像风
野的像风 2021-01-06 10:22

The Project

I\'ve been asked to work on an interesting project -- what amounts to a basic Web CMS -- that uses HTML/CSS/jQuery with PHP. However, on

9条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-06 10:53

    While an RDBMS may be necessary for a very large CMS, a small one could run off flat files very well. A lot of CMS products out there fall down in that regard, I think, by throwing an RDBMS into the mix when there's no real need.

    However, if you are using flat files, there are security issues which others have highlighted. Another issue I've come across is hosting providers using the disable_functions directive in php.ini to disable file I/O functions like fopen() and friends. If you're hosting your CMS on a box you control, you won't have this problem but if you're using a third-party provider, check first.

提交回复
热议问题