PHP and ASP. net comparison, whether you have selected PHP or not, according to its performance in the following table on price, speed, efficiency, security, platform support, and open source or not, we can all tell that its strength is far better than its weakness. The only disadvantage is the lack of object-oriented support. However, this is a relatively secondary defect. Although the structure of the language cannot be ignored, in the end, excellent coding still comes from repeated practices, executions, good habits, and discipline.
◆ Price comparison between PHP and ASP. NET:
I will not simply consider the price of my first investment. For PHP, it is obviously free of charge, but we also need to consider the cost of development, maintenance and debugging. You may also need to purchase the Zend Optimization engine. For ASP, You have to invest in products at the beginning, and you will spend additional technical expenses, such as purchasing graphics processing class libraries or other. However, in the long run, PHP does not require you to pay the upgrade fee or purchase more licenses. Anyone who has been in touch with the license will know that the company often spends a lot of time and money on ensuring product compatibility. In addition, the feedback handling situations for bugs found and fixed are also different, which can also be converted to time consumption, thus affecting the overall development cost.
◆ Speed and efficiency of comparing PHP and ASP. NET:
As I mentioned earlier, ASP. NET is a framework that allows you to use multiple programming languages. It also claims to have an outstanding object-oriented programming model. This is true, but it reduces the speed. Speaking of these advantages, for pages with the same function, pages running on ASP need to analyze and execute more code than PHP. PHP is a "fast food" solution, which can be implemented first. There are still many robustness problems that can be left in 2.0 or 3.0 for Supplement, in addition, its core code is compiled and optimized, and the program can run at high speed. Speed is not the only consideration, and memory consumption is also important.
◆ Security comparison between PHP and ASP. NET:
ASP. NET runs on IIS. This is a system that has suffered numerous attacks. Similar messages are generated in almost weekly it news. In fact, it has become a liability, no matter how much dollars the entire market has invested in it, many IT professionals have refused to expose their network to IIS web servers. While PHP and Apache work together, it boasts good speed and reliability, and excellent security.
◆ Platform support for comparison between PHP and ASP. NET:
ASP. NET initially runs on IIS and can also run on Apache, while Apache can run on all platforms. PHP is designed to run on Apache, so you have many proven reliable platforms to choose from.
◆ Open Source Comparison between PHP and ASP. NET:
Open source is not just a patent for idealistic programmers, nor exclusive to companies that want to save dozens of dollars on the license. When you encounter bugs in the software you purchased, open source is a good product.
Whether using ASP. NET or PHP, many users may use your software and discover bugs. For ASP. NET, these bugs will go through a bureaucratic process to inform, fix, verify, and then wait until the next patch is released. PHP is quickly repaired and released. Anyone who has seen open-source development knows that new product releases or patches often occur within days rather than weeks or months like commercial software. If you think it is not fast enough, you can fix it yourself if you want.
Some of the comparisons between PHP and ASP. NET are described here. I hope it will help you.
-----------------------------------------------------------------------------
Performance Comparison between PHP and Asp.net
Http://www.dbanotes.net/arch/facebook_php.html
Facebook's PHP performance and scalability
Facebook has its own cache framework, APC = Alternative PHP cache. The reason why Facebook uses PHP is that there are two good open-source cache frameworks that do not need to be paid to Microsoft.
Http://www.yanhai.net/html/php/php/20070730/1.html
ASP. NET and PHP Performance Comparison and Translation
-- PHP has been proven to be a little faster than asp3.0
-- ASP. NET is 3 ~ Faster than asp3.0 ~ 5 times (a scripting language similar to PhP)
ASP. NET is compiled rather than interpreted. Therefore, statements can be converted to faster execution time.
Http://www.baiming.org/hulianwang/php/12439.1.html
However, if you get robustness, it will be at the cost of efficiency loss. ASP. NET consumes a lot of memory usage and execution time, most of which is due to a long code path.
Http://www.oracle.com/technology/global/cn/pub/articles/hull_asp.html
PHP vs. ASP. NET
The original text of the above article. Finally, PHP has a smaller code path, which means less analysis and execution of PHP page server code, which will bring more efficient memory and usage and faster running.
Http://www.blogjava.net/shinewang/archive/2009/01/20/251600.html
Ruby/Java/Python/PHP Performance Comparison
PHP: jruby: Python: Java is about: 100. The above results are for reference only. In addition, jruby and Java occupy memory. From this we can see that Ruby does not have much performance problems in web development, at least the same order of magnitude as PHP/python.
After all .. The general conclusion is that Asp.net won the competition in terms of complexity, database interaction, and OO logic. Other simple operations of PHP won.
Http://webservices.ctocio.com.cn/net/112/9377612.shtml
Analysis on ASP. NET disabling viewstate
This is the main cause of Asp.net performance degradation.
Http://www.jb51.net/article/19203.htm
As mentioned here, in concurrent operations, session will cause blocking.
-----------------------------------------------------------------
Generally, the languages used for website construction are Asp, PHP,. net, and which languages are suitable for website program development? In fact, this is not necessarily true. All languages have their advantages. The language used by ASP is mainly VBScript. Net mainly uses C #. php uses the same language as C syntax. php development language is open source code. Therefore, it is highly secure because it is open source, vulnerabilities are easily discovered and repaired. The ASP language is developed by Microsoft. Currently, many ASP websites are used, and enterprise network sites use this language. Many source codes can be downloaded, it may not be long before you directly change it to the website you want, But websites that copy like this will not rank.
Maybe beginners still don't understand the open source code. The open source code means that the code data has not been encrypted. It is generally used for sharing between programmers. This facilitates the second development. . It is used in the same way as normal source code. If an error occurs in the open source code, you can tell me. Where did you go wrong? After N experts verified that NN was used by multiple General hands, there were no errors in the component, proving that the logic was perfect and the Organization was complete. It means that many people have tested NN for you before you use it. Of course, it is safe to use it.