What if you do a novel website where the novels are stored?

Source: Internet
Author: User
For example, using PHP to do a novel network of the specific content of the novel where is put in the database or directly into the text into the hard disk and then in the database to do the path of the association?

Reply content:

For example, using PHP to do a novel network of the specific content of the novel where is put in the database or directly into the text into the hard disk and then in the database to do the path of the association?

Think it is good to put local files, on the one hand can easily build index, easy to search. On the other hand, distributed storage can be arbitrary, regardless of the problems caused by the table
If you put it directly into the database, it is inefficient for a large novel to be placed in a field, especially when the full text is retrieved.

Both of them are better.

In the database for easy management and re-editing, search, etc.

Local files are easy to download directly

If you do not intend to provide direct download services, just put the database is OK

However, it's best to do the caching work

In my opinion, putting files in a service provider that provides cloud storage, the database provides only the necessary information and saves a small amount of data, such as title, type, author, etc. If you want to provide online reading, it is recommended to check the relevant online reading information, generally through a variety of plug-ins, may also include some file format conversion, in order to achieve better results.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.