Silicon Valley's Leading App, VR, and Web Developers

Blog

Developing your application in PHP vs. .NET

6 December, 2011 | Article Source: Rob LaPointe  |   (No Comments) | 21,747 Views

This article will outline some of the differences between PHP & .NET. Based on research from a few online stats the communication and interfacing between PHP and MySQL is faster than ASP.net and MSSQL but it is not very noticeable.

PHP has a larger community than ASP.NET and is also used or available almost everywhere today. That also means that there are probably more resources, libraries, frameworks, etc. you can choose from.

PHP, MySQL server, PostgreSQL server, Apache server, and Linux OS are all free and upgrades are also free. In addition, there is no additional licensing cost for having another hot standby server as a backup, or needing to run multiple servers for load balancing or server clustering. This is not the case with Windows servers.

PHP uses less memory than ASP.Net and also is free. ASP.NET is expensive with respect to memory usage and execution time, which is due in large part to a longer code path. For Web-based applications, these limitations can be a serious problem, because on the Web, your application is likely to scale to thousands and thousands of users per second. Memory usage can also become an issue on your Web server.

PHP is platform independent and can run on any platform — Linux, Unix, Mac OS X, Windows. ASP.net is built to run only on Windows platform.

PHP is interpreted at the server, so when changing a functionality, no additional steps are required to see the changes. On the other hand, ASP.net needs to be compiled each time the code is modified. Again, the development process is more time-consuming when using ASP.net as opposed to PHP. It takes a larger amount (more lines) of code to accomplish complex features and functionality with ASP.net compared to PHP, adding more time to the development process.

Most Linux / Unix servers are run very lean without any extra un-needed packages or GUI interfaces and therefore the OS uses a lot less CPU and RAM which provides more allocation to the database and web server.

Most windows servers run clunky and with many un-needed packages and GUI which will be using much more CPU and RAM. Obviously, a LAMP platform will have an advantage over the ASP.net platform because it will have more available resources.

Since LAMP is open source, there is a vast amount of dedicated and friendly developers around the world who continuously make improvements and updates, and provide support for the platform. Additionally, there are more support resources and developers available for PHP and LAMP Platforms. ASP.net relies on an available number of developers at Microsoft for making improvements and updates. There are less support contributors available to solve ASP.net challenges.

If the programming language needs to perform enormous tasks similar to the kind that sites such as Google or Yahoo do daily, then there should be a lot of consideration in selecting a very fast programming language for required enormous tasks — that is why Google and Yahoo mostly use open source programming languages. ASP.NET  is not an open source programming language

MySQL is used by Google, Facebook, YouTube, Yahoo and recently on FIFA World Cup which received a huge audience around the World. So no one can question the capability of the MySQL database server. Mainly the database used with ASP.Net is MSSQL which is also not open source and not faster as much as MySQL.

The Linux OS and ext4 (file system) performs better (IO) than Windows OS and NTFS (file system.) Windows file IO is not as better as Linux file IO

LAMP (Linux, Apache, MySQL and PHP) is also much more popular among hosting companies, and its popularity results in a lower monthly hosting cost for LAMP hosting compared to Windows hosting. There is a licensing cost for a Microsoft Windows Server, Microsoft SQL Server and future upgrades. The above licensing costs for Microsoft can substantially increase if the site becomes popular and there is a need to run the site on multiple servers or requires server features such as load balancing, server clustering or hot standby.

Here is a list of popular websites and the languages they use.

Google.com – C, Java, C++, PHP & MySQL

Facebook.com – PHP, MySQL and C++

MSN.com – ASP.net

Live.com – ASP.net

Wikipedia – PHP & MySQL

PHP & MySQL is editor independent. PHP developers have access to an extensive number of editors. It is a different style of programming — PHP and open source developers tend to use text editors such as VI, VIM, Notepad ++. Most ASP.net programmers rely on Microsoft Visual Studio editor to help them develop .NET Applications. (Many ASP.net developers love and swear by the Microsoft Visual Studio.)

These are just a few examples of how these two platforms are different. Your development partner can  assist in determining with one if best for your project or application.

 

Thanks,

Rob LaPointe-V.P. of Sales

rob@sdi.la

Silicon Valley

20665 4th St. Ste 204,
Saratoga CA 95070

+1.408.621.8481

team@sdi.la

Melbourne

12 Bunyip, Caroline Springs,
Victoria - 3023, Melbourne

0422 710 780

team@appsdevelopers.com.au

London

Unit 7, 97 Manor Farm Road Wembley HA0 1BN

United Kingdom

team@softwaredevelopers.co.uk

India

70A, 1st cross Jaya Nagar, Reddiarpalayam,

Puducherry - 605010.

leads@sdi.la