The www widely used on the Internet is one: browser/server mode (B/S mode). This model unifies the client and concentrates the core parts of system function implementation on the server, simplifying the development, maintenance and use of the system.
B/S structure (Browser/Server, browser/server mode) is a network structure mode after the rise of WEB. The WEB browser is the most important application software on the client. This model unifies the client and concentrates the core parts of system function implementation on the server, simplifying the development, maintenance and use of the system. Just install a browser on the client, such as Netscape Navigator or Internet Explorer, and install SQL Server, Oracle, MYSQL and other databases on the server. The browser interacts with the database through the Web Server.
Architecture
With the popularity of the Internet and WWW, previous hosts/terminals and C/S cannot meet the current global network openness, interconnection, and information everywhere With the new requirements of visibility and information sharing, the B/S model emerged, that is, the browser/server structure. It is an improvement of the C/S architecture and can be said to belong to the three-layer C/S architecture. It mainly takes advantage of the increasingly mature WWW browser technology, using a general browser to realize powerful functions that originally required complex special software, and saving development costs. It is a brand-new software system construction technology.
The first layer is the browser, that is, the client, which has only simple input and output functions and handles a very small part of the transaction logic. Since customers do not need to install a client and can browse the Internet as long as they have a browser, it is aimed at a wide range of users, so the interface is designed to be relatively simple and universal.
The second layer is the WEB server, which plays the role of information transmission. When a user wants to access the database, he will first send a request to the WEB server. After the WEB server unifies the request, it will send a request to access the database to the database server. This request is implemented with a SQL statement.
The third layer is the database server, which plays an important role because it stores a large amount of data. When the database server receives the request from the WEB server, it will process the SQL statement and send the returned result to the WEB server. Next, the WEB server will convert the received data result into HTML text and send it to the browser. This is the interface we see when we open the browser.
Working Principle
The B/S architecture adopts the working mode of browser request and server response.
Users can access text, data, pictures, animations, video on demand, sounds and other information generated by Web servers on the Internet through browsers;
And each Web server can access information through various Connect to the database server in this way, and a large amount of data is actually stored in the database server;
Download the program from the Web server to the local for execution. If you encounter instructions related to the database during the download process, the Web server It is handed over to the database server for interpretation and execution, and returned to the Web server, and the Web server returns it to the user. In this structure, many networks are connected together to form a huge network, that is, the global network. Each enterprise can build its own Internet based on this structure.
In the B/S mode, the user requests access through the browser to many servers distributed on the network. The browser's request is processed by the server, and the processing results and corresponding information are returned to Browser, other data processing and requests are all completed by Web Server. Through this framework structure and the browser embedded inside the operating system, this structure has become the mainstream structure pattern of today's software applications.
For more related knowledge, please pay attention to PHP Chinese website! !
The above is the detailed content of What type of www is widely used on the Internet?. For more information, please follow other related articles on the PHP Chinese website!