PHP vs ASP

Source: Internet
Author: User

PHP versus ASP
Thu, Aug 17,200 0; by John Lim.
Order:
Microsoft ASP is a powerful dynamic web page technology. I have used ASP for one year and used it to create many web sites, but now my company is trying to turn to another Internet technology called PHP for future web site development.
The problem is that we are used to ASP and prefer ASP. Why should we switch to PhP?

Open Source Movement
First, we realized that the open source movement has given us powerful technical support and freeCodeSupply. For example, in ASP, uploading files, encrypting passwords, and sending emails all require the support of third-party commercial software and charge fees. But in PHP, this is free of charge!
But this is not enough to convince us to turn to PhP, because we have invested a lot of time and money on these necessary commercial software tools.

InternetProgramAnd Linux
I have a dream. I hope every program will be an Internet program in the future. You don't need to buy a software package. You don't need to install it again. They can be obtained on the Internet and are already installed. We just need to run the program in the browser, which won't require too much configuration.
Most network applications run on Linux and PHP. They usually do not use ASP. There is a software called chilisoft ASP, which can run ASP on Linux, but it does not support the latest version of ASP, more importantly, any third-party DLL used to create a high-performance ASP site cannot run on Linux.
So, in order to realize our dream of Internet software, we decided to find a better technology that is close to ASP to replace it!

ISAPI support

The Zend team is developing a PHP Core Engine that includes an ISAPI engine.
ISAPI is a Microsoft Internet webserver API. Its application gives programmers who are used to program development in Windows a shortcut to Linux.

Technical Analysis

Everyone claims that their products are the fastest. This is not what I really care about-I only care about "fast enough". For me, PHP is fast enough!
ASP supports multiple programming languages. This system makes the program inherently slow and memory-consuming. Every language parsing of the program is equivalent to a PHP compilation (that is, when ASP starts to parse a code, it is equivalent to starting multiple PHP files at the same time. When ASP parses to an ASP file to start marking (<%), it needs to jump out of the HTML parsing process and select another appropriate parsing process, when it resolves to an ASP end tag, it has to return to the HTML parsing process.
At the same time, Zend intends to release a program that can protect usSource codeThe compiler, as well as various optimization technologies (Zend cache and Optimizer), and even a good application of PHP in windows, PHP will undoubtedly be better than ASP in this respect!

A commercial decision on using PHP

Compared with PHP, there are many other open source code options, such as Perl, Python/Zope and JSP/tomact. For me, PHP is the closest to ASP and easy to convert!
Perl: a language not applicable to large projects.
Python/Zope: a good language, but its system is not as close to ASP as PHP.
JSP/tomcat: in my opinion, compared with the scripting language, type-safe, type-bound, type-checking Java is not very good operation!

Code
We noticed that the code we developed with PHP is shorter than that developed with ASP, because the http get and post variables in PHP are automatically created as global variables, in this way, we should not 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 to make our code as concise and understandable as possible!
PHP has cookie and session management functions similar to ASP.

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

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.