doukuai3822 2010-04-22 18:55
浏览 7

如何保存用户上传的内容?

I am planning to start a site in which the content is generated by the users. What is the best method to save the data submitted by user?

Is the method of saving the data in phpmyadmin database a good idea considering that the data submitted by users is large similar to a blog post. Btw I'm good in working with php and mysql but I'm not sure whether it is a good method.

  • 写回答

2条回答 默认 最新

  • dongzhong1891 2010-04-22 19:08
    关注

    By 'phpmyadmin' database I assume you just mean a MySQL database.

    Since your user data is basically a 'blog post' - basic text and HTML, and you'll most likely be storing username, posting dates, titles, and the like as well -- a MySQL database is a fine place to store it.

    If you're using standard shared hosting, your options are pretty much a relational database (MySQL) or a flat file. Between those two choices, a relational database is the better option.

    评论

报告相同问题?