The difference between JSP, PHP, and ASP

Source: Internet
Author: User
Tags movable type

The difference between PHP and JSP(2009-12-17 14:18:13) reproduced
Tags: gossip Category: Computer technology
PHP

  PHP(hypertext Preprocessor) is a scripting language embedded in HTML pages. It borrows heavily from the syntax of the C and Perl languages and combines PHP 's own features so that Web developers can quickly write dynamically generated pages.

  php is completely free open source products, do not spend money, Apache and MySQL is also free open source, in foreign very popular,PHP and MySQL with the use, can very quickly build a good dynamic website system, Therefore, most of the foreign host systems are equipped with free apache+PHP+mysql. This collocation is generally considered to be more efficient than iis+asp+access, and the latter's use must be paid separately to Microsoft.

  PHP 's syntax is similar to Perl, but PHP contains far more functions than Perl,PHP has no namespace, and must be tried to avoid module name collisions when programming. An open source language requires simple syntax and rich functions, but the inherent flaw in PHP 's internal structure makes PHP unsuitable for writing larger sites than small and medium-sized amateur sites.

  A successful example of PHP development:

mediawiki-famous Wikipedia program, such a huge article can only use PHP+mysql to support, it is incredible.

wordpress-Famous blog system, the function of the slightest loss in movable type, many users have moved from movable type to WordPress.

Conclusion:PHP syntax is simple, easy to learn and easy to use, very conducive to the rapid development of a variety of different functions of the custom Web site,PHP because of structural flaws, so that php in complex large-scale project development and maintenance are more difficult.

  Asp

ASP (Active Server Pages) Microsoft's Windows IIS system comes with a scripting language that can be used to execute Dynamic Web Service applications. ASP syntax is very similar to visual BASIC, people who have learned VB can get started quickly, ASP is also the most easy to learn the language of the development of these scripting languages. But ASP is also the only language in these languages that does not support cross-platform well.

Because the ASP scripting language is very simple, its code is easy to understand, combined with HTML code, to quickly complete the application of the website.

ASP in the domestic unusual prevalence, because most of the domestic use of pirated windows and pirated SQL Server, and Asp+com+sqlserver is actually a good match, its performance is not lost in PHP+mysql, In particular, Windows and SQL Server have graphical interfaces that are easier to maintain than Apache and MySQL, and are therefore a good choice for countries that do not value intellectual property.

However, because the ASP is very simple, so the simple use of ASP can complete the function is limited, fortunately, COM (Component Object Model) technology to save the ASP, Microsoft provides com/dcom technology, greatly broaden the scope of the ASP application, Makes ASP almost unlimited extensibility.

Conclusion: Like PHP , ASP is simple and easy to maintain, very suitable for small web applications, through DCOM and MTS technology, ASP can even complete small-scale enterprise applications, but the fatal disadvantage of ASP is not support cross-platform system, in large-scale project development and maintenance is very difficult.

  Jsp

  JSP(JavaServer pages) is a dynamic Web technology launched by Sun. JSP Technology is in the Java language as a scripting language, people familiar with the Java language can quickly get started.

  Although the JSP itself is also a scripting language, but with PHP, ASP has the essential difference. Both PHP and ASP are interpreted by the language engine to execute the program code, while the JSP code is compiled into a servlet and executed by the Java virtual machine, which occurs only on the first request to the JSP page. Therefore, it is generally considered that JSP execution efficiency is higher than PHP and ASP.

  JSP is a server-side scripting language, the biggest benefit is the development of high efficiency,JSP can use JavaBeans or EJB (Enterprise JavaBeans) to perform the application requires more complex processing, But this site architecture, because its business rules code and page code mix, is not conducive to maintenance, and therefore does not adapt to the requirements of large applications, instead of the MVC-based Web architecture. The core idea of MVC is to divide the application into three parts: model, view and controller. The model refers to the data of the application, and the operation of the data, the view refers to the user interface, and the controller is responsible for the synchronization between the user interface and the program data. Through MVC's Web architecture, you can weaken the coupling of the various parts and separate the business logic processing from the page and the data so that when the code of one of the modules changes, it does not affect the normal operation of the other modules, so the MVC-based Web architecture is more adaptable to the trend of large-scale application development.

As a result, many large enterprise systems and business systems abroad use the above MVC architecture to support highly complex web-based large-scale applications.

Conclusion:JSP for web development is not as easy to learn as PHP and ASP, support Java host is less than the host of PHP , which restricts the development of Java technology on the website to a certain extent, However, in enterprise software applications, MVC still has a considerable advantage, although its configuration and deployment is more complex than other scripting languages, but for cross-platform medium and large enterprise applications, Java-based MVC architecture is almost the only choice.

The difference between JSP, PHP, and ASP

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.