A brief discussion on the difference between php and .net, a brief discussion on the difference between php.net_PHP Tutorial

WBOY
Release: 2016-07-13 10:18:04
Original
1814 people have browsed it

A brief discussion on the difference between php and .net, a brief discussion on the difference between php.net

I recently switched from asp.net to php. My main focus is web development. I feel that there are still many differences between the two.

1. Compared to .net, PHP is more inclined to the interpreted language type;

2. In .net, we mainly operate encapsulated objects - class libraries; in PHP, we mainly operate various functions;

3.php programming tools are relative to. NET's programming environment and database are very, very lightweight; especially the programming environment, which is both lightweight and flexible;

4. In .net and php, the methods of data transmission include get and post (the third type will not be discussed for now); in .net, we use context.Request["ID of the operation object to obtain data "], context.QueryString["ID of the operation object"]; in php, we use $_get["ID of the operation object"], $_post["ID of the operation object"];

5. In .net, the way to display data is Response.Write ("the content you want to display"); in php, we use echo "the content you want to display";

6. In .net, we mainly operate objects and arrays, and the two can be converted into each other; in .net, the objects we operate are mainly arrays.

What is the difference between website php and net

This question is a bit vague and I will explain it in multiple points
1. Running environment .NET is a Microsoft product. Theoretically, it can only run under Windows and is very cross-platform.
PHP can run on Windows and Linux and is very cross-platform. Good
2. Learning cost PHP is a weakly typed language (loose), simple and easy to use
.NET I was the first to do .NET. The learning cost of .NET is high and takes a long time
3. Running efficiency The benevolent sees benevolence and the wise see wisdom mainly depends on the level of the developers.

But now many websites are developed using a combination of PHP, MYSQL and Apache because of the low cost

What are the advantages and differences between php and net?

Learning: Compared with the learning curve of PHP and .NET, .NET is more expensive to learn and requires more knowledge. However, PHP is more popular and more people learn it, and the community is much larger than ASP.NET. , so ask difficult questions
First of all, PHP can run cross-platform, but ASP.NET does not only run on Windows. A long time ago, Mono, the cross-platform version of .NET, can run stably on Linux. Wait for other operating systems to come on, and both are open source and free.

Market: In terms of market share (WEB), traditional ASP ranks first in terms of market share, followed by PHP in second place. However, there are also many ASP.NETs. In terms of the enterprise development market, .NET and Java shares the market equally

In terms of application: Looking at the Microsoft official website based on the top ten Alexa websites, Windows Live, Bing, MSN and MySpace are all ASP.NET. Of course, websites like Facebook, WP and other websites are all PHP , but in more cases, PHP websites will not rely solely on PHP, because although PHP is Expess, it is not comprehensive without multi-threading and object-oriented design, so it must rely on other frameworks to supplement development, but that is exactly the case PHP has a larger open source community than .NET

I learned ASP.NET because the version upgrade under .NET is very fast, and it is a good training for skills. The previous knowledge can be applied, and I feel that This framework and the language C# are what I want. They are perfect. Of course, this is decided based on a lot of understanding of other frameworks and languages.
The ASP.NET community is actually much more open than imagined. Microsoft’s official documents actually allow general developers to make comments or modifications, and they can also enter the source code of the framework itself for debugging at any time.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/886148.htmlTechArticleA brief discussion on the difference between php and .net, a brief discussion on the difference between php.net I recently switched from asp.net to php , the main direction is Web development, and I feel that there are still many differences between the two. 1. Compared with .net, php is more...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!