Friday, 27 March 2009

Comparision among PHP and ASP, ASP.NET and J2EE (JSP and Servlet)

After researching, I write down what differences among PHP, ASP/ ASP.NET and JSP & Serlvet beyond different areas and their advantages and disadvantages.


Add Image

References:

- http://en.wikipedia.org/wiki/ASP.NET
- http://en.wikipedia.org/wiki/J2EE
- http://en.wikipedia.org/wiki/Php
- http://en.wikipedia.org/wiki/LAMP_%28software_bundle%29
- http://www.oracle.com/technology/pub/articles/hull_asp.html
- http://www.shawnolson.net/a/302/a-comparison-of-two-major-dynamic-web-platforms-lamp-vswisa.html
- http://blogs.msdn.com/joestagner/archive/2006/05/01/587567.aspx
- http://www.sitepoint.com/blogs/2004/07/01/the-j2ee-guy-still-doesnt-get-php/
- http://www.oreillynet.com/onlamp/blog/2004/07/php_scales.html
- http://www.modernlifeisrubbish.co.uk/article/why-not-dot-net

Search for Scripting and Database Evironment

Web applications running on server side, database driven or standalone are created in different programming languages. The most commonly used are PHP (Hypertext Preprocesor) or ASP (Active Server Pages) or ASP.NET or JSP (Java Server Page).

PHP is an open source technology that can be used to create applications that run for free on any Apache web server. Even more, PHP is a flexible and portable language and applications programmed in PHP are easy to be implemented or ported on many operating systems, such as Windows, Linux, MacOS and Solaris.

Active Server Pages is a technology created by Microsoft and is available mainly on Windows servers which require a commercial license.

As a consequence, the web hosting prices on Windows servers are higher than those corresponding to Linux web hosting. There are ASP versions for other operating systems, like Linux and Solaris, but even in this situation, the server software is not free. The main programming languages used in ASP are Visual Basic and Javascript, but Perl, Python and others could be implemented using the appropriate modules.

PHP language is similar to C++ from the synthax point of view and is very easy to learn. There are many PHP coding options for solving a simple task as compared to ASP. The PHP code is less complex and more compact than ASP. The speed of execution for PHP code is also higher than ASP. The tools needed for PHP development are also free or open source. PHP has also many built in functions, libraries and classes as compared to ASP and in this way PHP programming language allows a quicker development of web applications.

PHP applications which have a database backend can be made using various databases, such as MySQL.

ASP can connect through ODBC to various databases also, but the application performance is lower. The performance and stability of PHP/MySQL applications is demonstrated by the presence of a high number of such server side applications used on a very large scale with notable results.

More over, we can try to discover the PHP languages features by using one of the hundreds of tutorials available on Internet in order to see how easy it is to deploy in a short time any web application that will have both performance and stability with minimum amount of code.