Among the four,. NET and JSP should be the future development trend.
JSP:1> separate content generation and display using 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 identification and JavaBeans group, and bundled in the small script. All the scripts are executed 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 the jsp id to generate the requested content (for example, accessing the database by accessing the JavaBeans group component and using JDBC technology), and uses HTML (or XML) as the result) the form of the page is sent back to the browser. this helps the author protect his own code and ensure the full availability of any HTML-based Web browser.
2> emphasize that the vast majority of reusable group parts JSP pages rely on reusable and cross-platform components (such as JavaBeans or Enterprise JavaBeans) to execute 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 user groups. the component-based method accelerates the overall development process and balances various group organizations with their existing skills and development efforts to optimize the results.
Asp.net: First of all, Asp.net has nothing to do with ASP. It looks like an upgraded version or something. In fact, there is no connection. ASP is scripting and ASP language, while Asp.net uses C # language, which is totally different. Currently, Asp.net is divided into two versions: 1.1 and 2.0. Asp.net 1.1 are programmed using vs2003 (Visual Studio 2003. Asp.net 2.0 is programmed with vs2005 (Visual Studio 2005. Currently, vs2003 is generally used for development.
The Asp.net server requires the installation of a. NET environment. Of course, I am referring to the Windows system. By the way,. Net can only be run in the Windows environment. In Asp.net 1.1, Framework 1.1 is installed, and in Asp.net 2.0, Framework 2.0 is installed. The syntax of Asp.net 1.1 and 2.0 is also very different in the program. Now 2.0 is new, and I don't know if it will be 3.0 in half a year (joke ). The Windows system automatically supports the ASP and Asp.net environments without installing any programs. Asp.net is a compilation language, which is the biggest difference from ASP (ASP is an Interpretation Language ).
The speed of Asp.net is incomparable to that of ASP. Asp.net is a compilation language. Therefore, when it is loaded for the first time, it will compile all the programs (including the Worker Process and the syntax to form an assembly ), after the program is compiled, the execution speed is almost 0, while ASP submits the code to the VBScript interpreter or JScript interpreter for explanation. Of course, the speed of a program that has not been compiled is faster.
PHP:
PHP, like ASP, is also a scripting language. Generally, the connected database is a MySQL database. Of course, it can also be connected to other databases such as the ACCESS database and the MSSQL (sqlserver) database. Next, PHP is a free software, that is, its resources are free. PHP is better than ASP in terms of security. Of course, it is said that a good programmer can do almost the same thing about security, but PHP is better than ASP in terms of security. Why. The main reason is that the PHP server environment is relatively complex (Apache + MySQL + PhP must be installed ), the establishment of the ASP environment is relatively simple (you only need to install IIS), so the threshold for learning PHP is higher than that for ASP, as a result, many people tend to learn ASP more, and naturally there are more people studying ASP vulnerabilities, and fewer PHP users, so fewer people study vulnerabilities, from this point, PHP is more secure than ASP. Another point is that the Apache environment is preferably Unix. Of course, it can also be installed in windows.
ASP:
ASP is a scripting language. Generally, the connected database is access and MSSQL (sqlserver ). when we develop a general small database website, we generally use an Access database with less than 30 thousand records. The advantage of access database is that it is supported by general servers. The advantage of sqlserver database is that it is fast. For example, when the record set is more than 0.1 million, we recommend that you use an SQL database.
Both databases use SQL syntax in ASP, but the usage Syntax of Access database and SQL Server database is different.
When creating a website, ASP and HTML are mixed. asp is a background language that performs operations on the server. There are two types of foreground scripts: VBScript and JavaScript. Generally, ASP and VBScript are used together. VBScript is a front-end scripting language and runs on the client. Of course, JavaScript is also the foreground scripting language. Finally, I will explain the full name of ASP: ASP is the active (active) server (server) pages (pages), that is, the Active Server Page