Portal Home > Knowledgebase > Articles Database > PHP Vs ASP.net


PHP Vs ASP.net




Posted by princy88, 08-26-2007, 11:09 PM
I have seen a number of people asking this question. I thought this article (Comparing PHP and ASP.net) may be helpful to someone. Thanks, Princy

Posted by ThatScriptGuy, 08-26-2007, 11:19 PM
Eh....Not really a good write-up at all, actually. In every point mentioned (save for one), PHP was superior to ASP. It also read like it was written by a high school student as a compare and contrast report... Kevin

Posted by Steve_Arm, 08-26-2007, 11:26 PM
Just wow! All claims are false. This dude obviously doesn't know what he is talking about. I want go into the trouble mentioning that .net is far superior and easier than any language... but that's the true.

Posted by (Stephen), 08-27-2007, 12:43 AM
He doesn't even know what the .net framework is.....so there goes any objectivity in the write-up Doesn't know about .net's CLR either.....doesn't have a clue about how .net is processed........security, ha this is more based on programmer not on platform, but I'd say .net is far MORE secure.....

Posted by Codelphious, 08-27-2007, 01:14 AM
I can't help but laugh at the claim that any proprietary software/language, ESPECIALLY any written by Microsoft, is more secure than it's [successful] open source competitor. As noted by history, the most successful computer languages have consistently been open source. At any rate, the article itself is a joke. Languages can only be compared scientifically in terms of writability, readability, reliability, and cost. The article mentioned only cost, and in no great detail. The article also cites no references whatsoever, but does not hesitate to make exuberant claims. I give it a D-, for effort.

Posted by kuldeeps, 08-27-2007, 02:03 AM
PHP Hosting is generally cheaper than .Net Hosting and not same as claimed in the article. Community support in forums for PHP is far greater than .Net, about 6-10 times more.

Posted by jt2377, 08-27-2007, 04:26 AM
ASP.net, which is a relatively new development, has a lot of options when it comes to languages. Here, you can use languages such as C#, J#, C++ and VB.net. Hence, when it comes to sheer choice, ASP.net has better to offer. But PHP is no less, since it can do its task quite well, even with its minimum language tools." This guy doesn't know what he is talking about. ASP.net is an framework and any language targeting the .Net framework can be use to write ASP.net web application. I stop short after that. please don't pass around this garbage article as it carry no weight on PHP vs ASP.net

Posted by jt2377, 08-27-2007, 04:32 AM
PHP doesn't enforce security like java and .net does. this is why there are far more exploit in PHP based program than .net and java. when your tool(language) doesn't enforce security. it is up to the programmer and sadly most php programmer are newbie.

Posted by Jatinder, 08-27-2007, 04:46 AM
Just out of curiosity, I would like to know how Java enforces security. Are you referring to Java's exception handling? I moved from Java to PHP four years back, but don't remember anything about Java enforcing any security.

Posted by stdunbar, 08-27-2007, 11:02 AM
Traditionally this is in comparison to a compiled language like C/C++, not an interpreted language like PHP. Java has a sandbox model which checks against the current security model to determine what methods are and are not allowed to run. Applets have a very restrictive model where they can't access the local file system nor connect to any host other than their originator without explicit permission. Applications, by default, have fewer restrictions though it is easy to make it so that, for example, code in a servlet can't call System.exit(). Java also prevents a program from writing off the end of an array which can cause all kinds of problems. In C/C++ it is all a pointer into memory and the language does not protect you from doing this.

Posted by Steve_Arm, 08-27-2007, 11:14 AM
Yes, but C# isn't C/C++ it is fully managed - although you can work with pointers.

Posted by stdunbar, 08-27-2007, 11:21 AM
Yes, the CLR family of languages, when you're only using managed code, work the same way. I was answering the Java question and don't like giving props to corporations that are convicted monopolies on multiple continents

Posted by Steve_Arm, 08-27-2007, 03:29 PM
I use whatever suits me for the project.

Posted by mwatkins, 08-27-2007, 05:06 PM
The article referenced by the OP was written by an idiot and shouldn't be used for any serious comparison of the two languages. Its hard to imagine how anyone could rank the article anything but "poor".

Posted by jt2377, 08-27-2007, 05:45 PM
ASP.net is not an language. It's an framework. you can use any language that target .Net heck, there are IronPython and IronRuby for .Net and you can use those to create ASP.net app.

Posted by mwatkins, 08-27-2007, 06:05 PM
I realize that; one is a language + web framework rolled into one; the other is a development platform and framework that supports many languages. I was simply writing quickly and was thinking at the time about a specific comment, where the author had tried to suggest that interpreted PHP code would automatically perform better than compiled executibles in binary format. The article is riddled with errors and is so typical of comparisons that are done - most in fanboy-style light on logic and fact.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Burst Down?? (Views: 800)


Language: