.net is a Microsoft software which provides the library to all supporting languages.It includes network communications, cryptography, data access, web application development, database connectivity and numeric algorithms.and php is very different from .net .It is a programming language in which websites are created.