4 Answers - Sort by: Date | Rating
PHP and ASP.NET are two of the most widely used languages for development of web applications. Both allow development of complex and sophisticated sites, but both are very different.
PHP is a language. PHP consists of a platform-independent engine that parses PHP scripts. This language also provides common web application functionality such as database connectivity.
ASP.NET is not a language, but a technology and is a small part of the .NET Framework. The Dot NET Framework consists of a) CLR – Common Language Runtime which manages execution of the code b) a hierarchical set of class libraries. These libraries are extensive and provide a great deal of functionality both for web-based applications and well as windows-based.
ASP.NET framework is built entirely on an OOP paradigm and OOP concepts while PHP is not.
PHP does not follow the OOP paradigm entirely. It only supports partial encapsulation, and partial polymorphism.
Compilation is also different in PHP and ASP.NET.
In PHP, when a page is requested, the HTML and inline PHP script is compiled to binary format called Zend Opcodes. Once compiled, the opcodes are run by the Zend Engine and HTML is generated which is sent to the client. Commercial products are available that increase the speed at which PHP pages are executed.
In contrast, when an ASP.NET page is first requested it is converted into an intermediate language called MSIL (Microsoft Intermediate Language). The CLR then converts this MSIL to machine code. Conversion to machine code only takes place once for each page request (unless code has been modified). All subsequent requests use the already generated machine code. In ASP.NET no optimization product is required as the MSIL generated is already in its most optimized form.
PHP is a language. PHP consists of a platform-independent engine that parses PHP scripts. This language also provides common web application functionality such as database connectivity.
ASP.NET is not a language, but a technology and is a small part of the .NET Framework. The Dot NET Framework consists of a) CLR – Common Language Runtime which manages execution of the code b) a hierarchical set of class libraries. These libraries are extensive and provide a great deal of functionality both for web-based applications and well as windows-based.
ASP.NET framework is built entirely on an OOP paradigm and OOP concepts while PHP is not.
PHP does not follow the OOP paradigm entirely. It only supports partial encapsulation, and partial polymorphism.
Compilation is also different in PHP and ASP.NET.
In PHP, when a page is requested, the HTML and inline PHP script is compiled to binary format called Zend Opcodes. Once compiled, the opcodes are run by the Zend Engine and HTML is generated which is sent to the client. Commercial products are available that increase the speed at which PHP pages are executed.
In contrast, when an ASP.NET page is first requested it is converted into an intermediate language called MSIL (Microsoft Intermediate Language). The CLR then converts this MSIL to machine code. Conversion to machine code only takes place once for each page request (unless code has been modified). All subsequent requests use the already generated machine code. In ASP.NET no optimization product is required as the MSIL generated is already in its most optimized form.
3
0
Thanks for the info.. The discussion is very clear n awesome
Regards
Raghu
Regards
Raghu
Info is very clear and good
There is a difference between ASP .Net and PHP. ASP.net is the newest version of Microsoft Active Server Pages Technology. PHP stands for Hypertext Preprocessor. PHP is a server side scripting language for creating dynamic and interactive websites. Both are used to create powerful and dynamic websites. ASP.net is a part of Microsoft.Net Framework. PHP syntax is very similar to Perl and C languages. PHP is used with Apache web server on various operating systems and it can also be used with Microsoft Internet Information Server. While Asp runs on internet information service.
ASP.net is the next generation ASP. PHP supports many databases such as MySQL, Informix, Oracle, Sybase, Solid and generic ODBC. The popularity of PHP is that it is open source software. PHP is free to download and use. .Net framework is a environment for building, deploying and running applications on server. .Net framework contains a common language and common class libraries to provide advance standard services that can be integrated into variety of systems. .Net provides a feature rich environment. PHP file may contain text, files and scripts. So both language has significant importance and can be used differently. PHP is recommended because it is highly reliable, secure and fast than ASP.
ASP.net is the next generation ASP. PHP supports many databases such as MySQL, Informix, Oracle, Sybase, Solid and generic ODBC. The popularity of PHP is that it is open source software. PHP is free to download and use. .Net framework is a environment for building, deploying and running applications on server. .Net framework contains a common language and common class libraries to provide advance standard services that can be integrated into variety of systems. .Net provides a feature rich environment. PHP file may contain text, files and scripts. So both language has significant importance and can be used differently. PHP is recommended because it is highly reliable, secure and fast than ASP.
1
0
Actually I think PHP stands for 'PHP Hypertext Preprocessor' - a recursive acronym.
Sssss
Hi may i know which is the Best one for the web development PHP or Asp .net My view the PHP is the Best one am a php Programmer if any asp programmer tell me is any draw back in php then AspThanks www.way2tour.com www.webcodedeopt.com
0
0
Guest
answered 5 months ago
Now i clear my basic............about asp.net and php...............thank u very much
It is a question that many have asked and it's a question the communities of both languages fight on. I am not able to use ASP .net because of it's inaccessible interface and I like PHP personally. If you like an interface in which things could be done through drags/drops and instant help pop-ups will be shown to you, you can use ASP .net. If not, you should use PHP. Also, remember, if you use ASP .net, you have to (quite unsurprisingly) have everything from Microsoft: Your OS should be Windows, your database should be Microsoft's SQL, and your server should be Microsoft's IIS.
0
0
Guest
answered 4 months ago
- How Can I Get Value Of Temp From Using Php DOMDocument()?
- What Feature Of PHP 5.3 Does Appulous Make The Most Use Of?
- Why Is Php Better Than DOT NET?
- What Is The Difference Between Php And Common Gateway Interface?
- Critics Argued That The Publication Did Not Take Into Account The Full Breadth Of Catholic Social Teaching, Including Economic, Social Justice, Or Other Life Issues. ,?
- What Is The Important Difference Between Php And Asp?
- Why We Use Php?
- How We Can Replace The .NET Site With PHP?
- Is Php Replace The Dot Net Technology?
- Is There An Alternative Solution To The Ruby On Rails Unvlogit Plugin?
- Olve This Errormailing Request Came From An Unauthorized Domain?
- What Is Differance B/w Asp And Php?
- C# To PHP Converter,Can You Help Me?
- PHP Website SRS. Can You Help?
- We Want A Software Requirement Specification For Php Website Would You Going To Help Us?
- In Terms Of Searching For A Job, What Is Difference Between Asp.net And Php?
- Which Is Better PHP Or ASP.NET?
- Which Is Better Technology PHP Or ASP.net?
- What Is The Advantage Of Using Php Over Asp.net?
- Php And Asp.net Correct Different?
- Why It Is Easy To Make Website From Asp.net Rather Than Php?
- What Is The Difference Between Asp And Asp.net (i Am Confused)?
- What Is The Difference Between PHP And .Net?
- What Is The Difference Between Asp.net And Vb.net?
- What Is The Difference Between JSP And ASP Scripts In .net?
- What Is Difference Between BCL And FCL In ASP.net?
- What Is Trace In Asp.net? Can You Difference Between Panel And Groupbox In Asp.net?

New Comment - Comments are editable for 5 min.