How does the PHP website generally save an illustrated article?

Source: Internet
Author: User
Tags php website
Save in database? How exactly?


Reply to discussion (solution)

Pictures are compressed and text is saved in the database, while caching and page static work.

How can I compress it? Can you be more clear?
Does PHP save text in the Text field, or will it generate an HTML file or another way of doing this?

Pictures saved in a separate folder can be accessed via URL best saved on other servers pictures in picture URL

Text Size < 4k compression Save the path to a database blob >4k saved to a separate file in a folder named after the month in the database save only the file



The simplest is to use rich text boxes such as Ueditor, and then the text box content directly saved to the database can be

It is usually edited with a rich text editor to save the code directly to the database.

  • 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.