Programming: ASP JSP php Large ratio

Source: Internet
Author: User
Tags execution functions iis mysql object model php and php and mysql oracle database

ASP Full NameActive Server PageS, is a webServerEnd of the development environment, leveraging it to generate and execute dynamic, interactive, high-performance Web Service applications. ASP uses scripting language VBScript (Java script) as its own development language.

PHP is a cross-platform, server-side embedded scripting language. It borrows heavily from the syntax of the C,java and Perl languages and is coupled with PHP's own features, enabling Web developers to quickly write dynamically generated pages. It supports the vast majority of databases currently available. Also, PHP is completely free, and you can download it free from the official PHP site (http://www.php.net) without spending money. And you can gain unlimited access to the source code, and you can even add the features you need.

JSP is Sun's new generation of web development language, Sun Company with its extraordinary attainments in Java, Java applications from Java and JavaApplet, there is a new fruit, is Jsp,java Server Page. JSP can complete the powerful site program with the support of Serverlet and JavaBean.

All three provide the ability to mix some kind of program code in HTML code and the language engine to interpret the execution code. However, the JSP code is compiled into a servlet and interpreted by the Java virtual machine, which occurs only on the first request to the JSP page. In ASP, PHP, JSP Environment, HTML code is mainly responsible for describing the display of information style, and program code is used to describe the processing logic. Ordinary HTML pages rely on only the Web server, while ASP, PHP, and JSP pages require additional language engine analysis and code execution. The execution results of the program code are then embedded in the HTML code and sent to the browser together. ASP, PHP, JSP three are Web server-oriented technology, the client browser does not require any additional software support.

Asp:

1. Using simple scripting languages such as VBScript, JScript, and HTML code, you can quickly complete your Web site's applications.

2. Without compile compilation, easy to write, can beServerSide to execute directly.

3. Use a normal text editor, such as a Notepad for Windows, for editing and design.

4. Browser-Independent (Browser independence), the client can browse by using the browser with executable HTML code onlyActive Server PageThe content of the Web page designed by S. The scripting language (VBScript, Jscript) used by Active Serverpages is performed on the Web server side, and the client's browser does not need to be able to execute these scripting languages.

5.Active Server pages can work with anyActiveXscripting language compatibility. In addition to being designed using a VB script or a JScript language, other scripting languages provided by third parties, such as Rexx, Perl, Tcl, are used in a plug-in manner. The script engine is the COM (Component object Model) object that handles the script program.

6. Server-side scripts can be used to generate client script.

7. The ActiveX server components (ActiveX servers component) has unlimited scalability. You can use a programming language such as Visual Basic, Java, Visual C + +, COBOL to write the ActiveX Server Component you need.

Php:

1 • Database connection

PHP can be compiled into functions that have connections to many databases. PHP and MySQL are now the perfect group combination. You can also write your own peripheral functions to indirectly access the database. In this way, when you change the database you use, you can easily modifyCodingTo accommodate such a change. Phplib is the most common set of base libraries that can provide general transaction needs. But the database provided by PHPInterfaceSupport for each other, such as Oracle, MySQL,SybaseInterfaces that are different from each other. This is also a weakness of PHP.

Jsp:

1 • The production and display of contentSeparation

Using JSP technology, Web page developers can use HTML or XML identities to design andFormattingThe final page. Use a JSP logo or a little foot to produce dynamic content on the page. The logic that produces the content is encapsulated in the identity and JavaBeans cluster components, and bundled in the small script, all scripts are executed on the server side. If the core logic is encapsulated in logos and beans, other people, such as Web managers and page designers, can edit and use JSP pages without affecting the production of content. On the server side, the JSP engine interprets the JSP identity, produces the requested content (for example, accesses the database by accessing the JavaBeans groupware component, uses JDBC technology), and sends the results back to the browser as an HTML (or XML) page. This helps authors protect their own code while ensuring the full availability of any html-based Web browser.

2 • Emphasis on reusable group components

Most JSP pages rely on reusable and cross-platform components, such as JavaBeans or Enterprise JavaBeans, to perform the more complex processing required by the application. Developers can share and Exchange components that perform common operations or make these components available to more users or user groups. The component-based approach accelerates the overall development process and enables groups of organizations to balance their existing skills and the development efforts of optimized results.

3 • Use logo to simplify page development

Web page developers are not all program designers who are familiar with scripting languages. The JavaServer page technology encapsulates a number of features that are needed to produce dynamic content in an easy-to-use, JSP-related XML identity. The standard JSP identifier is able to access and instantiate the JavaBeans component, set or retrieve the group component attributes, and downloadAppletAnd to perform features that are more difficult to encode and time consuming in other ways.

JSP technology can be extended by developing a customized identity library. In the future, third party developers and others can establish their own identity libraries for common functions. This enables Web page developers to work with familiar tools and artifacts that perform specific functions like identities.

JSP technology is easy to integrate into a variety of application systemsstructureTo leverage existing tools and techniques, and to scale to support enterprise-class distributed applications. As part of the Java Technology family and a member of the Java 2EE, JSP technology can support highly complex web-based applications.

Because the built-in scripting language for JSP pages is based on the Java programming language, and all JSP pages are compiled into Java servlet,jsp pages, they have all the benefits of Java technology, including robust storage management and security.

As part of the Java platform, JSP features the Java programming language "once written, executed everywhere." As more and more vendors add JSP support to their products, you can use the servers and tools you choose, and modifying tools or servers does not affect your current application.

ASP, a dynamic Web language developed by Microsoft, also inherits the tradition of Microsoft products and can only be implemented in Microsoft'sServerProducts, IIS (Internet Information Server) (Windows NT) and PWS (Personal WEB Server) (Windows 98). UNIX also has Chilisoft components to support the ASP, but the ASP itself has limited functionality, it must be augmented by the asp+com group, and it is difficult to implement COM under UNIX.

PHP3 can be performed on the Windows,unix,linux Web server, but also support the general Web servers such as Iis,apache, when users change the platform, without changing the PHP3 code, can be used.

The JSP is similar to the PHP3 and can be executed on almost all platforms. such as Win Nt,linux,unix. In NT, IIS can support JSP via an additional server, such as JRun or servletexec. The well-known Web server Apache has been able to support JSP. Because Apache is widely used on NT, UNIX and Linux, JSP has a broader platform for execution. Although the NT operating system now occupies a large market share, but the advantages of UNIX in the server is still very large, and the new rise of Linux is not small. Porting from one platform to another, JSP and JavaBean don't even have to recompile because JavabyteCode is standard and platform-independent.

Performance comparison

Experiments have been done to perform loop performance testing and access to Oracle database tests for these three languages.

In the cyclic performance test, the JSP ended the 20000*20000 loop with an astonishing four seconds. And the ASP, PHP test is the 2000*2000 cycle (one less order of magnitude), but used 63 seconds and 84 seconds respectively. (Refer to Phplib).

In the database test, the three 1000 times insert,update,select and delete:jsp for Oracle 8 required 13 seconds, PHP takes 69 seconds, and ASP takes 73 seconds.

Prospect Analysis

Currently in the domestic PHP and ASP applications most widely. And JSP is a relatively new technology, the domestic use of less. But in foreign countries, JSP has become a more popular technology, especially E-commerce-class Web sites, using JSP more.

Using PHP's website such as Sina, Chinese (chinaren), etc., but because of PHP's own shortcomings, makes it not suitable for large-scale e-commerce sites, but more suitable for a number of small commercial sites. First, PHP lacks scale support. Secondly, the lack of multilayerstructureSupport. For a large load site, there is only one solution: distribution calculation. The database, the application logic layer, the representation logic layer are separated from each other, and the same layer can be separated according to the flow, and the group is composed of two-dimensional arrays. and PHP lacks that support. Also mentioned above, the database provided by PHPInterfaceSupport is not uniform, which makes it unsuitable for use in e-commerce.

ASP and JSP have no above flaw, ASP can obtain through com/dcom of Microsoft WINDOWSDActiveXScale support, obtaining structural support through DCOM and transcation server; JSP can gain scale support through Java class and EJB in Sun Java, through Ejb/corba and many vendors ' application Server for structural support.

Among the three, JSP should be the trend of future development. Some of the world's largest e-commerce solution providers use Jsp/servlet. More famous as IBM's e-business, its core is the adoption of Jsp/servlet Web Sphere. They are all supported by CGI. But last October it launched the enfinity, a jsp/servlet e-commerce application Server, and vowed not to develop traditional software.

In short, the three asp,php,jsp have a considerable number of supporters, which can also be seen with their own strengths. A friend who is learning or using a dynamic page can choose a language appropriate to his or her own according to the characteristics of the three.



Related Article

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.