First, the basic structure of the website
1, the general site structure is:
Website Program + database + middleware + server
2. Static and Dynamic Web pages
(1), Static Web page
In Web site design, a Web page that is purely HTML is often called a static Web page, and the file's suffix is typically. htm or. html. Once this page is formed, the content will no longer change.
How static Web pages work:
The client sends the request-to the server (receives the request)-finds a static web page--sends the Web page to the client
For example, we make a static page ourselves
Save as an. html file.
(2), Dynamic Web page
The so-called Dynamic Web page, that is, the page file is not only HTML tags, there are program code. This page may display different content at different times depending on the user's needs.
How Dynamic Web pages work:
The client sends the request--server side (Accept request)--Find Dynamic Web page--Execute program code, generate static Web page--Send Web page to client
Relative to static Web pages, Dynamic Web page is the content of the page according to the specific circumstances, he based on data technology, with different users, different times, the return of different pages.
The common dynamic page technology has ASP, PHP, JSP and so on.
ASP (Active Server Pages) is a background scripting language developed by Microsoft, and his syntax is similar to that of visual Dasic, where background scripting code can be embedded in HTML pages. At the time of execution, ASP is the program engine with ISS call, explaining the execution of ASP code embedded in HTML, and finally sending the result to the client with the original HTML.
PHP (hypertext Preprocessor) is a cross-platform server-side embedded scripting language, he borrowed a lot of C, Java and Perl language syntax, and coupled with PHP's own characteristics, is the web developer can quickly write dynamically generated page, It supports most of the current databases, and PHP is completely free. Like ASP, he can also embed background script code into HTML.
JSP (Java Server Pages) is a new generation of web development language introduced by Sun, which can be used for large-scale application services.
Website basic architecture and Web language