Home >Common Problem >What types of dynamic web page collection technologies include

What types of dynamic web page collection technologies include

青灯夜游
青灯夜游Original
2021-07-26 12:07:124085browse

Dynamic web page collection technology types include CGI, PHP, JSP, and ASP. CGI is a technology used to create dynamic web pages; PHP is a server-side scripting language embedded in HTML; JSP is used to create dynamic web pages that can support cross-platform and cross-Web servers; ASP is a technology provided by Microsoft to develop dynamic web pages. .

What types of dynamic web page collection technologies include

The operating environment of this tutorial: Windows 10 system, Dell G3 computer.

Five commonly used dynamic web page technologies

1, CGI

CGI (Common Gateway Interface (Public Gateway Interface) is an early technology used to create dynamic web pages. When the client makes a request to the specified CGI program on the Web server, the Web server will start a new process to execute certain CGI programs. 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 language. There is great flexibility in language choice. The most commonly used CGI development language is Perl.

The main disadvantages of CGI are complex maintenance and relatively low operating efficiency. This is mainly caused by the following reasons:

  • CGI programs run in independent processes. When multiple users want to establish connections with the server, the server needs to create a CGI for each user response. program process.

  • CGI programs are not resident in memory. Therefore, frequent access to CGI programs will result in a large number of disk I/O operations.

  • Writing a program to access the database is more complicated.

2. PHP

PHP (Personal Home Pages) is a server-side scripting language embedded in HTML. Can run on multiple platforms. It draws on the syntax of C language, Java language and Perl language, and has its own unique syntax.

Because PHP adopts the Open Source method, its source code is open, allowing it to continuously add new things to form a huge function library to achieve more functions. PHP supports almost all current databases.

The disadvantage of PHP is that it does not support components like JSP and ASP, and its scalability is poor.

3. JSP

JSP (Java Server Pages) is a Java-based technology used to create cross-platform and cross-web servers dynamic web page. JSP is not the same as JavaScript, the server-side scripting language. JSP adds Java program fragments and JSP tags to traditional static pages to form a JSP page, which is then compiled and executed by the server.

The main advantages of JSP are as follows:

  • JSP supports most platforms, including Linux systems, and the Apache server also provides services for JSP, making JSP cross-platform run.

  • JSP supports component technology. You can use JavaBeans to develop targeted components and then add them to JSP to increase its functionality.

  • As part of the Java development platform, JSP has all the advantages of Java, including "write once, run anywhere."

The main disadvantage of JSP is that writing JSP programs is more complicated, and developers often need to have a better understanding of Java and related technologies.

4. ASP

ASP (Active Server Pages) is a technology provided by Microsoft to develop dynamic web pages. It has simple development and powerful functions. With other advantages, ASP makes it very simple to generate dynamic Web content and construct powerful Web applications. For example, when you want to collect data from a form, you only need to embed some simple instructions into the HTML file to collect data from the form and analyze it. For ASP, you can also easily use ActiveX components to perform complex tasks, such as connecting to a database to retrieve and store information.

For experienced program developers, if you have mastered a scripting language, such as VBScript, JavaScript or Perl, and already know how to use ASP. As long as the corresponding engine that complies with the ActiveX scripting standard is installed, any scripting language can be used in ASP pages. ASP itself comes with two script engines, VBScript and JavaScript. From the technical perspective of the software, ASP has the following characteristics:

  • No compilation required. ASP scripts are embedded in HTML and can be directly interpreted and executed without compilation or linking.

  • Easy to generate ASP pages can be designed using a regular text editor (such as Notepad under Windows).

  • Browser-independent The client can browse the homepage designed by ASP as long as it uses a browser that can interpret conventional HTML code. ASP scripts are executed on the server side of the site, and the client's browser does not need to support it. Therefore, there is no need to download the ASP page from the server.

  • Object-oriented In ASP scripts, you can easily reference system components and ASP's built-in components, and you can also expand functions by customizing ActiveX server components.

  • Compatible with any ActiveX scripting language. In addition to using VBScript and JavaScript for design, you can also use other scripting languages ​​provided by third parties through Plug-in.

  • The source program code will not be leaked. The ASP script is executed on the server. What is transmitted to the user's browser is only the regular HTML code generated by the ASP execution result. This ensures that the written program code will not be leaked. leakage.

For more programming-related knowledge, please visit: Programming Video! !

The above is the detailed content of What types of dynamic web page collection technologies include. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Related articles

See more