Who are the masters of the Empire's dynamic web programming language?

Source: Internet
Author: User
Tags php and mysql
Author: ljbuyu Date: 2006-04-26

Asp jsp php is the three overlord of dynamic web page programming language. asp stands for Active Server Pages and is a web server development environment, it can be used to generate and run dynamic, interactive, and high-performance Web service applications. ASP uses the script language VBScript (Java Script) as its own development language. JSP is a new generation of site development language released by Sun. It completely solves a common problem of ASP and PHP, script-level execution (it is said that PhP4 is also supported by Zend, compile and run ). With the help of its extraordinary accomplishments in Java, Sun has made new achievements in Java applications and Java applets, namely JSP and Java Server Page. JSP supports powerful site programs with the support of serverlet and JavaBean. PHP is a cross-platform server-side embedded scripting language. It relies heavily on the syntax of C, Java, and Perl, coupled with PHP's own features, so that web developers can quickly write dynamic pages. It supports the vast majority of databases currently. Another point is that PHP is completely free of charge. You can freely download it from the official site of PHP (http: // www.php.net. In addition, you can obtain the source code without restrictions, and even add the features you need.

Powerful ASP empire

ASP, as Microsoft's early Dynamic Web programming language, attracted the favor of WEB programming enthusiasts for its simplicity, ease of use, and ease of use, it is one of the most widely used, most influential, and most practitioner languages in the three languages. ASP + ACCESS almost occupies the mainstream market of Bottom Web development, even some large websites have never abandoned ASP for Web application development. At the same time, ASP and Ms sqlserver are also Microsoft's products. Their combination has become a new force in dynamic web development and is increasingly applied to enterprise-level website program development.

ASP features:

1. Using VBScript, JScript, and other easy-to-understand scripting languages, combined with HTML code, you can quickly complete website applications.

2. It is easy to compile without compile compilation and can be directly executed on the server side.

3. Use a common text editor, such as a Windows notepad, to edit the design.

4. browser independence. The user can view the webpage content designed by Active Server Pages by using a browser that can execute HTML code. The scripting languages (VBScript and JScript) used by active serverpages are all executed on the Web server. The user-side browsers do not need to be able to execute these scripting languages.

5. Active Server Pages can be compatible with any ActiveX Scripting Language. In addition to using VB script or JScript, you can also use other scripting languages provided by a third party, such as Rexx, Perl, and TCL, in Plug-In mode. The script engine is a COM (Component Object Model) object that processes the script program.

6. Use the server script to generate the client script.

7. ActiveX Server Components (ActiveX Server Component) is infinitely scalable (

You can use Visual Basic, Java, Visual C ++, COBOL, and other programming languages to compile your required ActiveX Server component ).

ASP applications:

ASP is a dynamic web page language developed by Microsoft and inherits the consistent tradition of Microsoft products ?? It can only run on Microsoft's server products, IIS (Internet Information Server) (Windows NT) and PWS (Personal Web server) (Windows 98. There are also chilisoft plug-ins in UNIX to support ASP. However, Asp has limited functions and must be expanded through the combination of ASP + COM. It is very difficult to implement COM in UNIX.

ASP prospects:

ASP is not the best dynamic web page programming language at present, but it is definitely the most widely used programming language at present. Based on ASP, Microsoft has constructed ASP. net, You can say ASP. net continues many ASP features, but makes up for the shortcomings of ASP in many aspects, Asp. net is free from the disadvantages of ASP's scripting language. Theoretically, any programming language, including C ++, VB, and JS, can be used. Of course, the most suitable programming language is ms. net frmaework specifically released C (read C sharp), it can be seen as a mix of VC and Java, although Ms speak C # kernel more like VC, but I still think it is more like Java. First, it is an object-oriented programming language, rather than a script, so it has all the features of object-oriented programming language, such as encapsulation, inheritance, polymorphism, etc, this solves the vulnerabilities of ASP just mentioned. Encapsulation makes the code logic clear, easy to manage, and applied to ASP. net can separate the business logic from the HTML page, so no matter how the page prototype changes, the business logic Code does not need to be modified. Inheritance and polymorphism greatly improve the reusability of the Code, you can inherit existing objects to maximize your previous investment. C # provides a complete debugging/error correction system like C ++ and Java.

Fast JSP empire

The built-in scripting language of JSP is based on the Java programming language, and all JSP pages are compiled into Java Servlet. JSP pages have all the advantages of Java technology, including robust storage management and security. As part of the Java platform, JSP features the Java programming language "one-time writing, running everywhere. As more and more vendors add JSP support to their products, you can use the servers and tools you select. Changing tools or servers does not affect the current application.

JSP features:

1. Separate content generation and display

With JSP technology, web page developers can use HTML or XML tags to design and format the final page. Use JSP identifiers or small scripts to generate dynamic content on the page. The logic of the generated content is encapsulated in the identifiers and JavaBeans components and bundled in small scripts. All scripts run on the server. If the core logic is encapsulated in identifiers and beans, other people, such as Web administrators and page designers, can edit and use JSP pages without affecting content generation.

On the server side, the JSP Engine interprets JSP identifiers and small scripts to generate the requested content (for example, accessing the JavaBeans component, using the jdbctm technology to access the database, or including files ), in addition, the results are sent back to the browser in the form of HTML (or XML) pages. This helps the author protect his own code and ensure the full availability of any HTML-based Web browser.

2. reusable components

Most JSP pages depend on reusable cross-platform components (JavaBeans or Enterprise JavaBeans components) to perform more complex processing required by applications. Developers can share and exchange components that perform common operations, or make these components used by more users or customer groups. The Component-Based Approach accelerates the overall development process and balances various organizations in their development efforts with their existing skills and optimization results.

3. Simplified page development with logo

Web page developers are not all programmers familiar with the scripting language. The assumerver page technology encapsulates many functions that are required for dynamic content generation in easy-to-use and JSP-related XML identifiers. The standard JSP mark can access and instantiate the JavaBeans component, set or retrieve component attributes, download the applet, and execute functions that are more difficult to encode and consume in other ways.

Through the development of a custom identification library, JSP technology can be expanded. In the future, third-party developers and others can create their own identification libraries for common functions. This allows web page developers to work with familiar tools and components that execute specific functions like identifiers.

JSP technology can easily be integrated into a variety of application architectures to take advantage of existing tools and techniques and extend to support enterprise-level distributed applications. As part of the Java technology family and an integral part of Java 2 (Enterprise Edition architecture), JSP technology can support highly complex web-based applications.

JSP applications:

JSP is similar to php3 and can run on almost all platforms. For example, in Windows NT, Linux, and Unix. nt, IIS supports JSP through a plug-in, such as JRun or ServletExec. The famous web server Apache already supports JSP. Because Apache is widely used in NT, UNIX, and Linux, JSP has a wider operating platform. Although the NT operating system has a large market share, the Unix advantage in the server is still great, and the new Linux is not small. Porting from one platform to another, JSP and JavaBean do not even need to be re-compiled, Because Java bytecode is standard and platform-independent.

Prospect of JSP:

Due to the many characteristics of the Java development language, JSP's powerful application development capabilities and fast execution capabilities have attracted more and more attention in this time of high efficiency, I believe that JSP will become an important role in Dynamic Web programming language along with its eldest brother, Java.

Open PHP empire

PHP is a cross-platform server-side embedded scripting language. It relies heavily on the syntax of C, Java, and Perl, coupled with PHP's own features, so that web developers can quickly write dynamic pages. It supports the vast majority of databases currently. Another point is that PHP is completely free of charge. You can freely download it from the official site of PHP (http: // www.php.net. In addition, you can obtain the source code without restrictions, and even add the features you need.

PHP features:

1. Powerful data processing capabilities

PHP can be compiled into functions connected to many databases. PHP and MySQL are a perfect combination. You can also write peripheral functions to indirectly access the database. In this way, when you change the database you are using, you can easily change the encoding to adapt to this change. Phplib is the most commonly used base database to provide general transactions. However, the database interfaces provided by PHP are different from each other. For example, the interfaces for Oracle, MySQL, and Sybase are different from each other. This is also a weakness of PHP.

2. object-oriented programming architecture

PHP provides classes and objects. Web-based programming requires Object-Oriented Programming capabilities. PHP supports constructors and extraction classes.

PHP applications:

PHP can run properly on Windows, UNIX, and Linux Web servers. It also supports common Web servers such as IIS and Apache. When you change the platform, you do not need to change the PHP code, ready for use.

PHP prospects:

The characteristics of PHP determine the position of PHP in the dynamic Web programming language. However, in this era of subdivision, the development of group-type large websites does not show the deep understanding that PHP has been accepted. On the contrary, the subdivision era gives small web application development a vast world. On this stage, I believe PHP will be better and better.

Comparison of the three empire

Some people have performed tests to test the cyclic performance of these three languages and to access the Oracle database. In the cyclic performance test, JSP ended the 20000*20000 loop in just four surprising seconds. ASP and PHP test 2000*2000 cycles (one order of magnitude less), but they use 63 s and 84 s respectively. (Refer to phplib ). In the database test, the three performed 1000 insert, update, select, and delete operations on Oracle 8 respectively. It took 13 seconds for JSP, 69 seconds for PHP, and 73 seconds for ASP. Foreground analysis is currently the most widely used in PHP and ASP in China. JSP is a relatively new technology, which is rarely used in China. However, in foreign countries, JSP is already a popular technology, especially for e-commerce websites, mostly using JSP.

In addition, PHP lacks support for scale. There is a lack of multi-layer structure support. For heavy-load sites, there is only one solution: distributed computing. The database and application logic layers are separated from each other, and the same layer can also be separated by traffic to form a two-dimensional array. PHP lacks such support. As mentioned above, the database interfaces supported by PHP are not uniform, which makes it unsuitable for e-commerce. ASP and JSP have no such defects. asp can obtain ActiveX scale support through Microsoft windowsd COM/DCOM, and obtain structure support through DCOM and transcation server; JSP can be scaled through Sun Java's Java class and EJB, and structural support can be obtained through EJB/CORBA and Application Server of many vendors.

Among the three, JSP should be the future development trend. Some big E-commerce solution providers in the world use JSP/servlet. IBM e-business is a well-known company. Its core is to use JSP/servlet web sphere. Another famous Western e-commerce software provider, intershop, its original products intershop1, 2, 3, and 4 occupy the main share of e-commerce software. In addition, we need to see that PHP, as a mainstream language with high compatibility and integration, is becoming increasingly important and has become the most popular programming language today.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.