PHP is an Scripting Language where as Asp.NET is Not an Scripting Language but the most powerful website Developing Tool is PHP .
PHP and Asp.net is Free of Cost for Development where as for website hosting PHP is Freeware and Asp.net is Paid .
The Tool Used in PHP is Wamp , Xamp For Running PHP Script or PHP File and IDE used in PHP is Eclipse Zend , Notepad++ , Dreamweaver and Many Editor is used but in Asp.net The Only One framework and IDE is used i.e. Visual Stdio.
The Asp.net is more flexible for website development but they are more complicated for website hosting where as PHP is not more flexible in website development but they are free to host our site.
PHP is open source so it is not more secure where as Asp.net is not Open Source so it is Secure.
ASP.NET is more Secure Than PHP.
Compilation Process of ASP.NET :-
PHP and Asp.net is Free of Cost for Development where as for website hosting PHP is Freeware and Asp.net is Paid .
The Tool Used in PHP is Wamp , Xamp For Running PHP Script or PHP File and IDE used in PHP is Eclipse Zend , Notepad++ , Dreamweaver and Many Editor is used but in Asp.net The Only One framework and IDE is used i.e. Visual Stdio.
The Asp.net is more flexible for website development but they are more complicated for website hosting where as PHP is not more flexible in website development but they are free to host our site.
PHP is open source so it is not more secure where as Asp.net is not Open Source so it is Secure.
ASP.NET is more Secure Than PHP.
Compilation Process of ASP.NET :-
Compilation Process of PHP :-