Should I use PHP, ASP or ASP.NET?

It is a very frequently asked question and one that tends to rapidly digress into a platform war over the merits of Linux or Windows. This type of argument may actually reflect how difficult it is to perform a side-by-side analysis of competing Web technologies – and this is complicated by the lack of agreement on any comparable operating system baselines.

Dave Winter discusses this in more detail in his article here.

Sonu

Comments

# TrackBack said:

A Weblogger tries to figure out which of the of competing Web technologies he should settle with. With the platform war between Linux and Windows raging on, he is at a loss as to which technology will fit his needs. The choices between PHP, ASP, or ASP.NET could easily get anyone's head spinning, I suppose....

Tuesday, July 06, 2004 12:28 AM
# Sonu Kapoor said:

ASP.NET rocks :-)

Tuesday, July 06, 2004 8:52 AM
# Pioneer said:

Learn them all. The knowledge won't hurt you.

However, LAMP is the way to go. (Linux-Apache-MySQL-PHP)

It is Open Source, has plenty of professional and peer support,
and will run on ANY PLATFORM, even (shudder)Windows.

But don't take my word for it. Look at the respective APIs.
For example, string manipulation functions. Go to http://www.php.net
and Search for "strings" in th Function list. Take a look at it all!
No do a similar search in Microsoft's Knowlwdge base, if possible.
I believe the results (or lack thereof) speak for themselves. And remember, this is just one teeny, tiny, little area of functionality. Dig a little deeper and convincve yourself that LAMP is the way to go.

I think I just gave you better advice than "<whatever> rocks :-)"
This is typical between the two worlds. You want hype and a pretty
interface? Sure M$ "rocks". You want to get some real work done when time is short and real RESULTS matters? Then LAMP is a no-brainer. Steeper learning curve in some cases but well worth it.

'Nuff said.

Wednesday, July 07, 2004 4:46 AM
# John Lawson said:

I think JSP should be included in any such comparison of web scripting languages.
( not that I'm advocating it ;-) )

Wednesday, July 07, 2004 5:04 AM
# Sonu Kapoor said:

Honestly said, I have already worked with PHP, MySQL on Linux and I really liked it. But it was for a project. Now I have installed Linux on my windows in VMWare. I have even php and mysql installed on my windows system :-). Whenever I need it, I can run it :-).

Wednesday, July 07, 2004 6:42 AM
# Jim Lewis said:

The university that I attend offers a class they call 'server side scripting' but it is actually only ASP.Net. I have to say that after working with it for the last few weeks, I HATE IT! Well, maybe 'hate' is a harsh word - using Visual Studio to create pages in a flash but there is a mess in the code behind the page.

Also, just an observation, the versions of Visual Studio have changed the syntax that is acceptable in C++ where the header files used to require the .h and it wasn't always required to have 'using namespace std' with '#include <iostream>'. I could be wrong, but could the syntax of ASP.Net change with the versions of the development studio? If I am working on a project, I don't want to have to revisit and relearn what I have already invested my time into, I'd rather build on what I already know.

I have to agree with John Lawson's posting - JSP would also be a good consideration too especially since it would tie into applets and javascript. I am personally sold on LAMP.

Wednesday, July 07, 2004 9:21 AM
# DigiChaos said:

If you want to use object oriented programming and create a web application then use ASP.NET.

If you want a dynamic web page and cheaper hosting use PHP.

If you want a blog, use a blog that already exists. :)

Wednesday, July 07, 2004 9:31 AM
# rearview said:

Take a look at Zope/Plone it should cover every thing you need and will run on almost any OS

Thursday, July 08, 2004 8:01 AM
# David Silverlight said:

I must agree with Sonu's short, but accurate approach to ASP.NET. I have been using ASP.NET for some time and I must say that it is by far the most impressive technology that I have come across in a very long time. In fact, I had built an asp app within the last year that I had to make some changes to just recently. At the time I was working on it, I thought I was really doing some cutting edge work. However, after working with ASP.NET and seeing a completely different approach, I had to really redefine what I thought "cutting edge" is. ASP.NET is not an improved scripting language, it is a completely new architecture and approach to web development. Whidbey, the next version, will offer huge advancements over the current version as well. You simply can not compare it to scripting languages any more. It may not be free, like PHP or open source, but my billable hours are not free either. My work becomes more valuable to a customer if I can create a richer web application in a highly accelerated time frame and thus I can charge more per hour. Also, there is alot higher paying contracts out there for ASP.NET vs mainting legacy jsp, asp and php apps. That is also a high motivation for me and should be for any developer.

In my typical environment, I do not care about open source or free development tools. If I had to support environments other than OS, I might feel differently. Most of my clients are using MS platforms and they really want a rich web application created in a short time frame. ASP.NET gets me there.

A few comments:

Jim Lewis wrote:

If I am working on a project, I don't want to have to revisit and relearn what I have already invested my time into, I'd rather build on what I already know.

-- Relearning new technologies is all part of keeping cutting edge. I relearn the development tools every 6 months and am very happy to do it. Even if it means abandoning something that I spent years learning, like ASP or Data Islands. I would rather always know the best techniques rather than sticking with old techniques solely because I "spent my time learning it".

"Using Visual Studio to create pages in a flash but there is a mess in the code behind the page. "

-- There is a mess in the code behind the page? That must be the fault of the Develolpment platform, eh. Not you?


Pioneer wrote:
You want hype and a pretty interface? Sure M$ "rocks". You want to get some real work done when time is short and real RESULTS matters? Then LAMP is a no-brainer. Steeper learning curve in some cases but well worth it.

--- I have seen PHP code and it isn't pretty. The harder to read the code is, the longer it takes to maintain. "Steeper learning curve in some cases but well worth it." I find that to be a very nicely phrased understatement. :)






Saturday, July 10, 2004 2:13 PM
# stefan demetz said:

http://dotnetjunkies.com/weblog/stefandemetz/posts/10465.aspx

Sunday, July 18, 2004 7:00 PM
# TrackBack said:
Tuesday, July 20, 2004 7:40 AM
# Jim Lewis said:

Just a short response to David Silverlight... it is obvious that you're pro Microsoft, not that I am against them and their product - I just have my dislikes to what they offer. My point about revisiting and relearning new technologies was not a knock against doing it but rather a gripe at how there isn't any kind of standardization. Deployment of a new IDE should not come with redefining what a programming language is all about. Enhancements should be expected but redifining syntax shouldn't.

The code that has been a mess behind the scenes in this class that I am taking is a result of the drag and drop methodologies that come from the IDE. Unfortunately the teaching materials that this univeristy uses focus too much on the drag and drop and not enough focus on the code part. With PHP, you really don't have a choice but start with the code. Heck, maybe I am just a purist, but we are all entitled to our opinions and often they are charged based on our experiences. My biased feelings toward PHP right now may be because I can run it on different platforms and not just Windows, not to mention that the right professor/mentor makes all the difference.

Tuesday, July 27, 2004 11:22 PM
# i dont want you to know said:

zrgz zrt rzytyzsyetv5ty 5y ezs5y 5y r5y r56y 6ty 6ry 6try r6 yr6y r6yr r6yt ty try trysys5tys se5yt s5ryt e5y5ey 5y65yh r5y

Tuesday, November 27, 2007 1:30 PM
# DesiBhai said:

ASP.Net offers an integrated stack and is easy to use. Also Web Expression is a very powerful IDE with some cool templates available for nominal fees.

Tuesday, January 29, 2008 3:02 AM
# john said:

well,i think i can agree with the asp.net disliker. i worked during my 4 years experience in web development business with both ASP.NET and PHP, and to be honest i like the PHP more as i found a very easy to use and learn and the syntax does not change whenever a new version is released like microsoft. i believe that microsoft provide a very powerfull tool with ASP.NET but the problem that any ASP.NET user always feel that he need always a training to know everything in ASP.NET and maybe this is the catch is that to make you always pay to learn to enrich the learing industry microsoft own, i find PHP very easy to use, very easy to learn, and the resources that are available on the internet for its codes are huge and moreover you can do with it everything you can do with ASP.NET.

my advise to you to read more about the two sccripting languages and maybe to consider the JSP as SUN MICROSYSTEMS is investing billions of dollar in putting their scripting language into the market

Thursday, October 02, 2008 9:51 PM

Leave a Comment

(required) 
(required) 
(optional)
(required)