What is the server used for? Can I save the data? So what's the difference from a database?

Source: Internet
Author: User
such as the user's avatar some people say is saved on the server I do not know what the server is what ah in my mind there is no concept I know that the database is to keep things like the database can not save the picture. What do you want the database to do if the server is able to save things?


Reply to discussion (solution)

1, the database is able to save pictures (binary form), but generally no one does so, too much space.
2, the general practice is to put the picture alone on a server, the path of the picture exists in the database.
3, the server has many kinds of: database server, Apache (Web server) and so on.
4, to Apache+php+mysql do explain:
client browser------"Request-----" Apache Server-----"PHP communication------" PHP dynamic call MySQL database (increase and deletion check, etc.)

1, the database is able to save pictures (binary form), but generally no one does so, too much space.
2, the general practice is to put the picture alone on a server, the path of the picture exists in the database.
3, the server has many kinds of: database server, Apache (Web server) and so on.
4, to Apache+php+mysql do explain:
client browser------"Request-----" Apache Server-----"PHP communication------" PHP dynamic call MySQL database (increase and deletion check, etc.)


Still do not understand the role of the server

I am also a novice to teach you about my understanding and hope to help you
Servers are like chopsticks and the database is like a dish of dishes website program like people
People use chopsticks to eat dishes in the dish.
As for saying that the picture is saved on the server, it should be saved on the server host (if there is any mistake, God help to correct it)
Landlord said the server can save things that want the database to do? Database is used to save data let us call directly if the landlord to learn a paragraph should be naturally understood
Even if the image is saved on the server, it will save his address in the database and then call it through the address.

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