The differences between jsp asp php are: 1. ASP uses the scripting language VBScript as its own development language, PHP is a cross-platform server-side embedded scripting language, and JSP is similar to PHP; 2. ASP only Can be executed on Microsoft's server product IIS, while the other two can be executed on almost all platforms.
ASP
ASP uses the scripting language VBScript (JavaScript) as its own development language. ASP is a dynamic web page language developed by Microsoft. It also inherits the tradition of Microsoft products and can only be executed on Microsoft's server product IIS (Internet Information Server).
ASP is a Web server-side development environment that can generate and execute dynamic, interactive, and localized Web service applications. Its technical features mainly include the following aspects:
It has nothing to do with the browser (Browser Independence). The client can browse the web content designed by Active Server Pages as long as it uses a browser that can execute HTML code. The script languages (VBScript, JScript) used by Active Server Pages are all executed on the Web server side, and the client's browser does not need to execute these script languages.
Active Server Pages is compatible with any ActiveX Scripting language. In addition to using VBScript or JScript language design, you can also use other scripting languages provided by third parties through plug-in, such as REXX, Perl, Tel, etc. The script engine is a COM (Component Object Model) object that handles script programs.
Use VBScript, JScript and other simple and easy-to-understand scripting languages, combined with HTML code, you can quickly write website applications. Server-side scripts can be used to generate client-side scripts.
Using an ordinary text editor, such as Windows Notepad, you can program. No compilation is required, it is easy to write, and can be executed directly on the server side.
PHP
PHP is a cross-platform server-side embedded scripting language. It almost borrows the syntax of C, Java and Perl languages, and combines PHP's own features to enable web developers to quickly write dynamic pages. The characteristics of PHP are: it supports most databases, and its source code is completely open.
PHP can be executed normally on Windows, Unix, and Linux web servers. It also supports general web servers such as IIS and Apache. When users change platforms, there is no need to change the PHP code.
PHP and MySQL are an excellent combination right now. Users can also write their own peripheral functions to access the database indirectly. In this way, when the database used is changed, the coding can be easily modified to adapt to such changes.
Tips:
PHP LIB is the most commonly used series of base libraries that can provide general transaction needs. However, the database interface support provided by PHP is not consistent with each other.
JSP
JSP is similar to PHP and can be executed on almost all platforms, such as Windows, Linux, and Unix. The web server Apache already supports JSP, and Apache is widely used on Windows, Unix and Linux, so JSP has a wider range of execution platforms.
Although the Windows operating system now accounts for a large market share, Unix still has a great advantage in servers, and the newly emerging Linux is even more powerful.
When porting from one platform to another, JSP and JavaBean do not even need to be recompiled, because Java bytecode is standard and has nothing to do with the platform. ASP, PHP, and JSP are all Web server-oriented technologies, and the client browser does not require any additional software support.
Ordinary HTML pages only rely on the Web server, but ASP, PHP, and JSP pages require additional language engines to analyze and execute program code. The execution results of the program code are re-embedded in the HTML code and then sent to the browser together. All three provide the ability to mix some kind of program code in HTML code and have the program code interpreted and executed by the language engine. JSP code is compiled into a Servlet and interpreted and executed by the Java virtual machine. This compilation occurs only on the first request for a JSP page.
In ASP, PHP, and JSP environments, HTML code is mainly responsible for describing the display style of information, while program code is used to describe processing logic.
The above is the detailed content of The difference between jsp asp php. For more information, please follow other related articles on the PHP Chinese website!