Differnce between asp.net and PHP

PHP and ASP.NET are used for web applications development and helped in development of complex web sites and both are very different.

PHP is a language which consists of a platform independent engine that parses PHP scripts and also has functionality such as database connectivity.

On the other hand ASP.NET is not a language it is a technology and is a small part of the .NET Framework. The Dot NET Framework consists of CLR Common Language Runti
me which manages execution of the code which is a hierarchical set of class libraries. These libraries helps in functionality of both web-based applications and windows-based.ASP.NET framework is built entirely on an OOP paradigm and OOP concepts.

PHP does not follow the OOP concept. It only supports partial encapsulation, and partial polymorphism.

Compilation in both is also different.