Synonym dynamic page generally refers to dynamic web page
Introduction
From the perspective of website viewers, whether it is a dynamic web page or a static web page, it can display basic text and picture information, but from the perspective of website development, There is a big difference from the perspective of management and maintenance.
Early dynamic web pages mainly used Common Gateway Interface (CGI) technology. You can use different programs to write suitable CGI programs, such as VisualBasic, Delphi or C/C++. Although CGI technology has matured and has powerful functions, it has a tendency to be gradually replaced by new technologies due to programming difficulties, low efficiency, and complex modifications.
Corresponding to the static webpage, it can interact with the background database and transfer data. That is to say, the suffix of the web page URL is not the common dynamic web page creation format of static web pages such as .htm, .html, .shtml, .xml, but .aspx, .asp, .jsp, .php, .perl,. Cgi and other forms are suffixes, and there is an iconic symbol-"?" in the dynamic web page URL.
Features
Briefly summarized as follows:
(1) Dynamic web pages are generally based on database technology, which can greatly reduce the workload of website maintenance;
(2) Websites that use dynamic web technology can implement more functions, such as user registration, user login, online surveys, user management, order management, etc.;
(3) dynamic web pages In fact, it is not a web page file that exists independently on the server. The server returns a complete web page only when the user requests it;
(4) The "?" in the dynamic web page has a certain effect on search engine retrieval The problem is that it is generally impossible for search engines to access all webpages from a website’s database, or due to technical considerations, the content after the "?" in the URL is not crawled during the search, so websites that use dynamic webpages are searching Certain technical processing needs to be done during engine promotion to meet the requirements of search engines.
Server-side
A program (server-side script) running on a Web server is used to change the content of web pages on different web pages, or adjust the sequence or Reloaded webpage. The server responds to determine this situation, the data in the posted hypertext markup language form, the parameters in the URL, the type of browser used, the elapse of time, or the status of the database or server.
These web pages are usually ASP, ColdFusion, Perl, PHP, WebDNA, or other server-side languages. These server-side languages often use Common Gateway Interface (CGI) to generate dynamic web pages. There are two obvious exceptions to asp.net and JSP (Java Server Pages). The concept of CGI is reused in their API (programming interface), but in fact all web (network) requests are dispatched to a share Virtual machine. When dynamic webpages have little or no expected changes, they are often cached and the page is expected to receive a lot of network traffic, which will create slow loading times to the server.
Client
The client script changes the interface and behavior on a specific web page or responds to mouse or keyboard operations, or events at a specified time. In this case, the dynamic behavior occurs when it occurs. The content generated by the client is in the user's local computer system.
The presentation technology used on these pages is called rich interface pages. Client-side scripting languages, such as JavaScript (Java script) or ActionScript (action script), dynamic HTML (DHTML) and the use of Flash technology are often used to orchestrate presentations of media types (sound, animation, modified text, etc.). The script also allows the use of a technology of remote scripting, DHTML pages request other information from the server, using a hidden frame, XMLHttpRequest or Web (network) services.
Four commonly used dynamic web technologies
1, PHP is HypertextPreprocessor (hypertext preprocessor), it is the most popular scripting language on the Internet today, and its syntax is borrowed from C , Java, PERL and other languages, but you can use PHP to build a truly interactive Web site with very little programming knowledge.
It has very good compatibility with the HTML language. Users can directly add HTML tags to the script code, or add script codes to the HTML tags to better achieve page control. PHP provides a standard database interface, convenient database connection, strong compatibility; strong scalability; object-oriented programming can be carried out.
2. ASP is ActiveServerPages (Active Server Pages), which is a combination of Hypertext Markup Language (HTML), Script (Script) and CGI (Common Gateway Interface) developed by Microsoft. It does not provide its own special programming language, but allows users to use many existing scripting languages to write ASP applications. ASP programming is more convenient and more flexible than HTML. It runs on the Web server side, and then sends the running result to the client browser in HTML format after running. Therefore, ASP is much safer than general scripting languages.
The biggest advantage of ASP is that it can include HTML tags, can also directly access the database and use unlimited expansion of ActiveX controls, so it is more convenient and more flexible than HTML in programming. By using ASP components and object technology, users can directly use ActiveX controls, call object methods and properties, and implement powerful interactive functions in a simple way.
But ASP technology is not perfect, because it is basically limited to Microsoft's operating system platform, the main working environment is Microsoft's IIS application structure, and because ActiveX objects have platform characteristics, so ASP technology cannot be easily implemented to work on a cross-platform Web server.
aspx is Microsoft's dynamic web page file running on the server side. After analyzing and executing through IIS, the dynamic page can be obtained. It is a new network programming method introduced by Microsoft, not a simple upgrade of asp, because Its programming method is very different from asp. It is the program code that is compiled and executed by the server on the server side. ASP uses a scripting language. Each time a request is made, the server calls the script parsing engine to parse and execute the program code. Asp.net can be written in multiple languages, and it is fully compiled and executed, which is faster than ASP. Moreover, it is not only a question of speed, but also has many advantages.
3. JSP stands for JavaServerPages (Java Server Pages), which is a new technology launched by SunMicrosystem in June 1999 and is a Web development technology based on JavaServlet and the entire Java (Java) system.
JSP and ASP have many similarities in technology, but the two come from different technical specification organizations, so that ASP is generally only applied to the WindowsNT/2000 platform, while JSP can be more than 85% It runs on the server, and applications based on JSP technology are easier to maintain and manage than applications based on ASP, so it is considered by many to be the most promising dynamic website technology in the future.
4. CGI (CommonGatewayInterface) is an earlier technology used to build dynamic web pages. When the client sends a request to the designated CGI program on the Web server, the Web server will start a new process to execute some CGI programs, and after the program is executed, the results will be sent back to the client in the form of a web page. The advantage of CGI is that it can be written in many languages, such as C, C++, VB and Perl. There is great flexibility in the choice of language. The most commonly used CGI development language is Perl.
Features
Asp.net is a programming framework built on the common language runtime, which can be used to generate powerful Web applications on the server. Compared with the previous Web development model, asp.net provides several important advantages: 1) Enhanced performance. asp.net is a compiled common language runtime code that runs on the server. Unlike the explained predecessors, asp.net can take advantage of early binding, real-time compilation, native optimization, and out-of-box caching services. This is equivalent to a significant performance improvement before the line of code is written.
2) World-class tool support. The asp.net framework supplements a large number of toolboxes and designers in the VisualStudio integrated development environment. WYSIWYG editing, drag-and-drop server controls, and automatic deployment are just a few of the features provided by this powerful tool.
3) Power and flexibility. Because asp.net is based on the common language runtime, web application developers can take advantage of the power and flexibility of the entire platform. The .NET framework class library, message processing and data access solutions can all be seamlessly accessed from the Web. Asp.net has nothing to do with language, so you can choose the language most suitable for the application, or split the application across multiple languages. In addition, the interactivity of the common language runtime ensures that existing investments in COM-based development are preserved when migrating to asp.net.
Disadvantages
1. First, dynamic webpages do not have an advantage in access speed. Dynamic webpages first obtain the user's instructions, and then the webpage takes the instructions to the database to find the data corresponding to the instructions , And then passed to the server, the dynamic page is compiled into standard HTML code through the server's compilation, and passed to the user's browser, so that the user can see the web page. The problem arises. Every time you visit a webpage, you have to go through such a process. This process takes at least a few seconds. As the number of visitors increases, the page loading speed will slow down, which is also a burden for the server. ; From the user's point of view, the web page loads slowly, and there is no response. Who will visit your website next time. The static web page is simple. The static web page actually exists and is directly loaded into the client's browser and displayed without being compiled by the server. This shows that dynamic web pages do not have an advantage in access speed. 2. There is no advantage in search engine inclusion. The above is from the perspective of server and user experience, and the following is from the perspective of search engine inclusion. Dynamic web pages are pages formed after the user inputs instructions, and there is no such thing. Pages, and search engines will only crawl ready-made, and will not input by themselves, so the website does not have an advantage in search engine inclusion. Search engines still like static pages. However, search engines are constantly improving and developing. So far, most search engines have supported the crawling of dynamic pages.
Static form
Suffixes such as .htm, .html, .shtml, .xml, etc. On hypertext markup language format webpages, various dynamic effects can also appear, such as animation in .GIF format, FLASH, scrolling letters, etc. These "dynamic effects" are only visual, and are similar to the dynamic webpages that will be introduced below. Different concepts. In website design, webpages in pure hypertext markup language format are usually called "static webpages". Early websites are generally made from static webpages.
We briefly summarize the characteristics of static web pages as follows:
(1) Each static web page has a fixed URL, and the URL of the web page is .htm, .html,. Common forms such as shtml are suffixes without "?";
(2) Once web content is published on the web server, regardless of whether there is a user visit, the content of each static web page is stored on the website On the server, that is to say, static web pages are files that are actually stored on the server, and each web page is an independent file;
(3) The content of static web pages is relatively stable, so it is easy to Retrieved by search engines;
(4) There is no database support for static webpages, and there is a lot of work in website production and maintenance. Therefore, it is difficult to completely rely on static webpage production methods when the amount of website information is large;
(5) The interaction of static webpages is poor, and there are greater limitations in terms of functions;
(6) Static webpages run faster with data.
Static webpages are relative to dynamic webpages. They refer to webpages that have no back-end database, no programs, and no interaction. What you make up is what it shows, and there will be no change. Static web pages are relatively troublesome to update, and are suitable for display-type websites that are generally updated less frequently.
Static dynamic
Distinguish
Static webpages, dynamic webpages are mainly distinguished according to the language of webpage creation:
The language of static webpages: Hypertext Markup Language (an application of the standard universal markup language, foreign language abbreviation: HTML)
Dynamic webpage language: based on the hypertext markup language, combined with the above scripting language to write
Static and dynamic comparison
Whether the program is running on the server side is an important indicator. The programs, web pages, and components running on the server are dynamic web pages. They will return different web pages with different clients and at different times, such as PHP, JSP, ASP, net, CGI, etc. The programs, web pages, plug-ins, and components running on the client are static web pages, such as html pages, Flash, JavaScript, VBScript, etc., and they will never change.
Static webpages and dynamic webpages have their own characteristics. Whether the website uses dynamic webpages or static webpages mainly depends on the functional requirements of the website and the amount of website content. If the website functions are relatively simple and the content update volume is not very large, use The method of purely static webpage will be simpler, otherwise, the dynamic webpage technology is generally used to realize it.
Static webpages are the foundation of website construction, and there is no contradiction between static webpages and dynamic webpages. In order to meet the needs of search engine retrieval, even if dynamic website technology is adopted, webpage content can be transformed into static Web page publishing.
Dynamic websites can also use the principle of combining static and dynamic. It is suitable to use dynamic webpages where dynamic webpages are used. If static webpages are necessary, you can consider using static webpages