Comparison Between ASP
Comparison Between ASP
NET
ASP, PHP, JSP, and ASP. NET are currently the four most popular WEB website
programming languages. Currently, most websites use one of these languages.
ASP is based on the WINDOWS platform and is easy to use. Because it runs on
the WINDOWS platform, it has poor portability and cannot run across platforms.
However, most websites in China use it for development now.
ASP Introduction
ASP is called Active Server Pages in English.
The following figure shows the differences between HTML and ASP.
When a user browser (as shown in: Web Client) requests an HTML
When a webpage is accessed, the Web server directly sends the webpage to the
user's browser without computation. The browser then processes the HTML
code of the webpage and displays the result.
The processing process of ASP is more complex. When a user's browser (Web
Client) moves from the Web Server (Web Server)
When an ASP Webpage is required, the Web server sends the ASP file to the ASP
Engine (ASP Engine) and ASP
The engine converts all the server scripts (in <% and %>) on the ASP Web page
into HTML code, and then converts all HTML
The code is sent to the user's browser.
HTML and CSS can be used to write beautiful static webpages, but these
webpages lack interaction with users.
For example, you need to add the user registration and login functions for your
website. You may also need to perform some online surveys to learn about users'
feedback on an event or product; you may also need an e-commerce website to
release product information in a timely manner and satisfy users' online ordering
needs.
And ASP. HTML code, and then display the result. Full name in English!
Compiling ASP dynamic web pages can help you implement these user
interaction functions.
<Head>
</Head>
<Body>
</Body>
</Html>
Timely release product information and meet users' online ordering needs.?
Demo
In the above ASP Web Page code example, you can see that this ASP file is
basically the same as a common HTML web page, in addition to the Code <% =
"www.www.blabla.cn" %>.
PHP Introduction
If you are engaged in Web-based development, you may have heard of PHP. Brief
introduction of the basic concepts of PHP.
Background Knowledge
PHP is a small open source code. As more and more people become aware of its
practicality, it gradually develops. Rasmus Lerdorf released the first PHP version
in 1994. Since then, it has developed rapidly and has been improved and
improved to version 4.0.3 through numerous improvements.
On the other hand, assume that you create product. php from
Page. It does not have static information. Instead, it can be encoded to extract
information from the product database and dynamically build a page. Then you
have a metadata page, which can be based on the information stored in the
database
Provides one, one hundred, or even 100,000 separate pages. Now, the website
administrator no longer simply updates static pages all day, because the
information in the company database can be updated at the same time.
. This eliminates the headache of time delay (the interval between changing
information in the database and displaying information on the website ).
In general, PHP is very suitable for Web work. But it is not the only method; for
example
Perl, Java, JavaScript, ASP, Python, Tcl, CGI, and many other methods can
generate dynamic content. However, PHP
It is designed for Web-based problems and open source code.
If you are looking for programming languages for text processing or 3D games,
PHP may not be the language you need. If you need to run a website with
dynamic content, database interaction, and e-commerce, continue reading,
because PHP is indeed very useful in this regard.
PHP does not get the GPL license, but its own license allows redistribution of
code and/or binary files.
Use PHP
Now you are sure you want to try PHP. Let's take a look at some simple
examples to give you a rough idea of PHP. Remember, this is not a way to gain
an in-depth understanding of PHP, but just a quick start.
Note that PHP and HTML are mixed here. If you already know HTML, only the
PHP code is explained here.
PHP code is to mark <? Php starts and starts with?> End. This tells the server to
<? Php and?> All content
PHP commands perform syntax analysis. If you find them, you need to execute
them. Please note that when processing and serving your files, the customer will
receive common HTML
File. Those browsing your site cannot see any PHP Command. Unless you make a
mistake, the server splits the PHP code and does not process it first.
In general? Php and?> Between regular HTML tags. Note that the preceding
simple script contains the <br> branch tag. If the HTML format cannot be used
well, PHP will not be very useful.
If you want to use it with other things, or you are a forgetful person like me, you
may want to comment out the code. // The character indicates that it is a
comment and the server will not process it //
The marked content will not pass the content to the client like the comments in
HTML. If <? Php and?> There is a standard between tags <! --
Comment -->
When the server performs syntax analysis on it, errors may occur. Obviously, you
may not comment on your code like I do with this basic function, but it is a good
example.
Note that every PHP function is enclosed in parentheses and ended with a
semicolon.
Similar. It is common to omit an ending parentheses or semicolons due to a
simple printing error, so make sure to check the code. Such as Vim or Emacs
Compiling PHP in such an Editor (which can highlight the syntax) helps to
eliminate such errors. It allows you to capture errors immediately.
The date function is only one of the built-in PHP functions. PHP comes with many
features that can be used to connect to databases, create PDF, Shockwave,
JPG, GIF, and PNG
And other image files, send emails, read and write files, syntax analysis XML,
session processing, direct conversations with browsers over HTTP, and many
other features.
PHP also allows users to define their own functions. This enables the PHP
language to access the Web
Provides a large number of solutions. Instead of writing everything from the very
beginning. Before writing a function, make sure that you have checked such as
Zend.com and PHP Wizard.
Freshmeat to check whether there are functions you are writing.
JSP Introduction
ASP. NET
1.1 What is ASP.net
Because ASP.net is a program compiled and run based on a general language, its
strength and adaptability can make it run on almost all the platforms of Web
application software developers (I have
Only known that it can only be used in Windows 2000
Server ). The basic library, messaging mechanism, and data interface processing
of common languages can be seamlessly integrated into ASP.net Web
applications. ASP.net is also
Language-independent language is independent. Therefore, you can select a
language that best suits you to compile your program, or write your program in
many languages.
C # (a combination of C ++ and Java), VB, and Jscript are supported. In the
future, the ability to work collaboratively in multiple programming languages will
protect your current programs developed based on COM +.
To ASP.net.
ASP.net is very simple to run some common tasks such as form submission
client authentication, distribution system and website configuration. For
example, the ASP.net page architecture allows you to create your own user
interface, so that it is different from the common VB-Like interface. In addition,
the simplified development of common languages makes it easy to combine code
into software, just like assembling a computer.
Efficient manageability
In ASP.net design, website developers can define their own "plug-in" modules in
their own code. This is different from the original inclusion relationship. ASP.net
can add components defined by itself. The development of website programs has
never been so simple.