Home >Backend Development >PHP Problem >Is the php language asp or jsp?

Is the php language asp or jsp?

王林
王林Original
2019-10-10 11:49:522261browse

Is the php language asp or jsp?

PHP

PHP, Hypertext Preprocessor, first came out in 1995 (it was called Personal Home Page at that time). PHP was originally a server-side scripting language for making dynamic web pages, but now PHP can be used as a command line to run standalone programs with a GUI. It is now the PHP Group that develops and manages PHP rules, functions, etc. But PHP is mostly used in dynamic webpage scripting, and I don’t seem to have heard of anyone using it to develop desktop applications.

PHP usage rate is the highest among several languages ​​​​for making dynamic web pages (JSP, ASP, ASP.NET, ColdFusion, Ruby, SHTML). Because PHP has been around since 1995, it has a considerable number of developers. 90% of the well-known international authoritative encyclopedia Wikipedia is written in PHP, and FaceBook, the "Xiao Nei Network" that has been popular abroad for many years, is also written in PHP. At the same time, Yahoo, Sony official, and Pepsi official websites all use PHP.

PHP is not only highly used, but also compatible with various platforms. It can run on most web servers (such as MS IIS, Apache) and most operating systems (such as Windows, UNIX, Linux). And PHP supports most brands of databases: MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Gerneric ODBC, etc.

JSP

JSP, JavaServer Pages are part of Java technology, which can be said to be part of Java Platform Enterprise Edition (JAVA has three main technologies, Java SE, Java EE, Java ME). Software developers can use JSP to dynamically generate HTML, XML or other documents. Then respond to the document to the web user.

There are many functional XML tags in JSP (such as: ,

JSP is exactly the same as Servlet after compilation. When a JSP page is visited by a user for the first time, it is first compiled into a Java Servlet Class by the JAVA compiler. Then the compiled Servlet Class will run directly in the JVM when it is accessed by the user in the future, and the JSP Web Container will output HTML to the user. The "first access-precompiled" running method of JSP is much faster than traditional PHP (PHP 4 and previous versions of PHP) and outdated ASP (all versions of ASP).

The precompiled operation method was later imitated by PHP5, and ASP.NET is also precompiled. Of course, another advantage of JSP is that you can directly use pure Java (without HTML) to write a Servlet. After the JVM is run, the JSP Web Container outputs HTML to the user. It's just that sometimes it's troublesome for Servlet to write some presentation tier things because it can't integrate XML and output logic together. Therefore, Servlets are generally used for pure Java business logic.

ASP

ASP (Active Server Pages) and ASP.NET are dynamic web page development language and dynamic web page development language and structure.

ASP and Active Server Pages are obsolete, but because they appeared early in 1996, some small and medium-sized websites still use them (but the most widely used one is PHP, which was originally launched in 1995) Today. ASP is Microsoft's first generation dynamic web development language, which can only run under the Windows system MS IIS server platform.

Wikipedia, Facebook, Baidu, etc. all use PHP. The ease of learning PHP is about the same as that of ASP; JSP is a little more difficult. JSP is generally used by banks, shopping and other websites with higher security. Google also uses JSP). However, with the various needs of developers, ASP can be replaced by ASP.NET in the future, because Microsoft has stopped all technical maintenance and functional updates for it. ASP.NET is an innovative version of ASP (note the "innovative version", not the "improved version"), or a completely new generation of Dynamic Web Scripting.

ASP represents traditional dynamic web scripting, which has nothing to do with ASP.NET. It is indeed useless to learn it. Because ASP is not like CGI (Common Gateway Interface), which is the ancestor of dynamic website production. All ASP, JSP, and PHP are evolved from CGI, and ASP, PHP, and JSP all contain some CGI things; and ASP However, no new technology has been derived, and ASP.NET is not considered based on ASP. It can only be said that the ASP.NET development concept, library, and functions are completely based on other components of .NET.

In fact, if you know one of PHP, JSP, and ASP, the others are easy to learn. If you must learn traditional dynamic web scripting, then learn PHP. It is not more difficult than ASP, but has more functions and better stability than ASP. PHP5 also runs much faster than ASP (JSP is slightly more difficult because you need to learn some Java). Learning PHP or JSP is good for learning ASP.NET, and you can also directly use PHP and JSP for development. Go to Google for English resources. Some people rate PHP as the best, and some rate JSP as the best. I have never heard anyone say that ASP is the best.

Recommended tutorial: PHP video tutorial

The above is the detailed content of Is the php language asp or jsp?. 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