English 中文(简体)
有人能解释用户账户在网页上是如何运作的吗?
原标题:Can someone explain how users accounts works on webpage?

有人能解释用户账户在网页上是如何运作的吗?

www.website.com/profile?uid=15636373282
or
www.website.com/profile/15636373282

据我所知,每个用户都会得到独特的信息。

网站是否为服务器上每个用户概况文件夹创建存储用户概况网页和图片、视频的网页?

我知道用户名和密码都存储在数据库中, 但我认为存储用户简介页面,图片,视频 在数据库中,它的Insaine。

Can someone help me to understand? thank you

最佳回答

任何用户简介都有两个部分:简介文本字段和媒体数据。

正在数据库中储存文本字段( id、 name、 dectption、 出生日期等);

基本上来说,媒体数据(avatar 图像、另一个文件)正在一些文件夹中的磁盘和该文件夹的用户代号引用中存储在磁盘上。

是的, 网站创建了此文件夹。 媒体文件不应存储在数据库中!

“ 简略网页” 是一个抽象的概念。 网站通常在运行时使用来自数据库的上述参数生成此页面, 以及媒体数据( 插入图像链接到网页 html ) 。

问题回答

No. The website does not create folders for each users. The ?uid=15636373282 is just a parameter that the web server fetch and retrieve that from the database.

是的,档案页面,图片和视频大部分都存储在数据库中。尽管它们可能存储在不同的服务器中。有些网站在租赁或租赁服务器上存储大量数据,或者在提供云存储的公司(如亚马逊EC2)上存储大量数据。





相关问题
what is wrong with this mysql code

$db_user="root"; $db_host="localhost"; $db_password="root"; $db_name = "fayer"; $conn = mysqli_connect($db_host,$db_user,$db_password,$db_name) or die ("couldn t connect to server"); // perform query ...

Users asking for denormalized database

I am in the early stages of developing a database-driven system and the largest part of the system revolves around an inheritance type of relationship. There is a parent entity with about 10 columns ...

Easiest way to deal with sample data in Java web apps?

I m writing a Java web app in my free time to learn more about development. I m using the Stripes framework and eventually intend to use hibernate and MySQL For the moment, whilst creating the pages ...

join across databases with nhibernate

I am trying to join two tables that reside in two different databases. Every time, I try to join I get the following error: An association from the table xxx refers to an unmapped class. If the ...

How can I know if such value exists in database? (ADO.NET)

For example, I have a table, and there is a column named Tags . I want to know if value programming exists in this column. How can I do this in ADO.NET? I did this: OleDbCommand cmd = new ...

Convert date to string upon saving a doctrine record

I m trying to migrate one of my PHP projects to Doctrine. I ve never used it before so there are a few things I don t understand. In my current code, I have a class similar to this: class ...

热门标签