Subscribe to my full feed.

Tuesday, November 27, 2007

ASP vs PHP

I stumbled into the long running debate of which server side programming language is better, PHP or ASP.  Here is how we looked at it when discussing which technology to use for a recent project.


PHP:
Pros:
1.  Speed:  PHP's ability to process complex pieces of programming is very strong when run in a Linux environment.
2.  Object Oriented:  PHP is now considered to be a fully object oriented programming language.
3.  Community:  PHP is supported by a quite large and powerful community.
4.  Cost:  PHP is free, linux is free, total costs are hardware and setup.

Cons:
1.  The developers involved in this project are not as strongly skilled in PHP as ASP.
2.  Requires more tinkering to properly connect to SQL Server.
3.  To take full advantage of PHP's speed, must use Linux based OS.

ASP:
Pros:
1.  Windows platform:  Less intensive setup.  Many would argue this, but realistically 90% of all computers use windows, it is more familiar to more people than Linux.  Which means that you can readily find more people capable of setting up a windows based web server than windows.
2.  Designed to seamlessly work with SQL Server.

Cons:
1.  Cost:  Windows.
2.  Speed:  Performs quickly, but never as fast as a properly configured Linux web server.
3.  Abandoned Language:  No telling what version of IIS will no longer support asp pages.

Conclusion
Based on what I have written here, most readers would scream PHP.  We chose ASP.  We decided that although PHP is the better language in the long hull, it would severely delay our entrance to market, which is a critical thing.  If we chose PHP, we would be breaking new ground in setting up a highly secure web server which would have slowed us down.  Not to mention the developers involved could probably be rated a 6 out of 10 on PHP and a 9 out of 10 on ASP, which means a learning curve.  We are definitely using SQL Server as the DB and we had trouble getting connected to a remote SQL Server.

So ASP was our choice, and I completely know that this is a highly debated issue and I welcome all comments.  As their may be information that might make my pro con list more robust.

Chris

No comments: