C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » General »

Difference between Asp.Net and Php


Posted Date: 28 Aug 2008      Posted By: Wax      Member Level: Silver     Points: 1   Responses: 5



What is biggest difference between Asp.Net and Php apart from cost and IDEs.




Responses

Author: kalyan kumar pasupuleti    28 Aug 2008Member Level: GoldRating: 4 out of 54 out of 54 out of 54 out of 5     Points: 6

Hi Wax

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.

there is alot of diffrence between PHP and ASP.

1. Cost wise(microsoft product) licence required.

2.speed.

3.platform compatibility.

4.additional cost if use the tools in the asp.

5.Base langauge.

6.database connectivity.

etc.

Regards
Kalyan Pasupuleti



Author: Wax    28 Aug 2008Member Level: SilverRating: 2 out of 52 out of 5     Points: 1

Very Good reply. You have mentioned all the necessary things i wanted. Thanks


Author: Kamaraj    29 Aug 2008Member Level: SilverRating: 2 out of 52 out of 5     Points: 6

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.



Author: Swaminathan    30 Aug 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 4

PHP is an open source server-side scripting language. It runs using apache web server and also needs mySQL or Postgres databases.PHP applications are portable.

Asp.net application needs .net framework and visual studio.It can be developed using many languages like c#, vb.net and J#.Many advanced controls are available in visual studio to develop various web applications.



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : Student Project
Previous : Oracle Schedular
Return to Discussion Forum
Post New Message
Category: General

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use