The difference between PHP and ASP

Source: Internet
Author: User
Tags php tutorial
Order:
Microsoft's ASP is a powerful Dynamic Web page technology, I have used a year of ASP, with it to create a number of Web sites, but now my company is looking to another called PHP Internet technology, for future web site development.
The problem is that we are used to using ASP, and we like to use it, why should we turn to PHP?


Open Source Movement
First, we recognize that the open source movement has enabled us to gain strong technical support and free code supply. For example: In ASP, upload file, encrypt password, send mail all need third party's commercial software support, be charged; but in PHP, it's all free!
But that's not enough to persuade us to move to PHP, because we've invested a lot of time and money on these essential business software tools.


Internet Programs and Linux
I have a dream, I hope in the future every program is an Internet program. No need to purchase packages, do not install it, they can be on the Internet, and is already installed, we just run the program in the browser, this does not require too much configuration.
Most of the Web applications are running on Linux and PHP. They usually do not use ASP, there is a software called Chilisoft ASP, it can run ASP on Linux, but it is money, and it does not support the latest version of ASP, more importantly, the creation of high-performance ASP site used by the good third-party DLL can not run on Linux.
So, in order to realize our Internet software dream, we decided to find a better, close to the ASP technology to replace it!


Support for ISAPI

The Zend team is developing a PHP core engine that includes an ISAPI engine.
ISAPI is a Microsoft Internet WEBSERVER API that has been used by our programmers who are accustomed to developing programs under Windows to have a shortcut to Linux.

Technical analysis

Everyone claims their product is the fastest, this is not my real concern---I only care about "fast enough", for me, PHP fast enough!
ASP supports a variety of programming languages. This system makes the program inherently slow and multi-memory occupied, each of its language resolution is equivalent to a PHP compilation, (that is, when the ASP begins to parse a code, it is equivalent to running multiple PHP simultaneously), when the ASP parsing to an ASP start tag (<%), It needs to jump out of the HTML parsing process and choose another appropriate parsing process, and when it resolves to an ASP end tag, it is returned to the HTML parsing process.
At the same time, Zend intends to release a compiler that can protect our source code, as well as a variety of optimization techniques (Zend Cache and Optimizer), and even implement PHP in the good use of Windows, no doubt, PHP in this regard will be stronger than asp!


A business decision to use PHP

There are many other open source options, such as Perl,python/zope and jsp/tomact, compared to PHP. For me, PHP is the closest to ASP, but also easy to convert!
Perl: A language that does not apply to large projects.
Python/zope: A good language, but its system is not as close to ASP as PHP.
Jsp/tomcat: I think, compared to the scripting language, Type-safe, Type-bound, type-checking Java is not very good operation!


Code
We note that the code we developed with PHP is shorter than the ASP development because the HTTP GET and post variables are automatically created as global variables in PHP, so we don't have to spend too much time analyzing ASP request objects.
At the same time PHP's include () function is very good, we can have conditional include code, so that our code as concise and more understandable!
PHP has a cookie and session management function similar to ASP.

Conclusion:
I am still using PHP, in all places using the "$" symbol, it is very cool, and it is also my favorite symbol! :)

The above introduces the difference between PHP and ASP, including the contents of the content, I hope that the PHP tutorial interested in a friend helpful.

  • 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.