Monday, November 28, 2011

Week 10: ASP vs PHP

Summarize the difference between ASP and PHP in a from of table such as following:



ASP
(Activity server pages)


VERSUS

PHP
(Hypertext preprocessor)

ASP requires
- initial cost
- ongoing cost
for maintenance and debugging,.
- ASP libraries will come with a price tag.

Terms of Price
PHP is free.
ASP developers is limited
Developer community
-PHP developers have contributed to a variety of open source projects.

-PHP has a fairly large developer community that is active in reporting bugs and creating additional PHP libraries.

MS-SQL that  is a product of Microsoft

Database Connectivity

-Uses MySQL

ASP can only work with
-Window based platforms.

Platform compatibility

PHP programs can also run in  
-Windows, Solaris, Unix and Linux

ASA uses
-Visual Basic as base language and limited to some product of Windows.



Base Language

PHP uses
- C/C++ as base language and most syntax.

To connect to database, the users ASP
--need to purchase MS-SQL, which is a Microsoft product.



Costs

To connect to databases of which the most commonly used is the MySQL. Note that MySQL
- would not cost a thing to use.


ASP
-uses an overhead server
- and is uses a COM based architecture,
so ASP runs slowly.



Speed

PHP
-codes runs much quickly, it runs in
-own memory space



THE NUMBERS

The following charts and benchmarks are taken from WrenSoft and quite simply show the difference. This first graph shows the time taken to generate and display results for a search a small website.





As you can see, the average time for the php site: 0.1500 seconds, the time for Asp.Net: 0.0150 seconds... that is a HUGE difference, the php search takes 10 times as long! The next one does the same with a larger site, and the results are not much different.