Question:
Which is the more 'future-proof' server side scripting language - PHP or ASP.NET - which is better ?
2013-09-29 12:23:50 UTC
I wanted to start a 'which is better - C++ or JAVA' debate but decided not to - hence this question instead.

which, in your professional opinion is the best for web application development - php or asp.net , and why ?

best answer goes to somebody who has thorough knowledge on both these languages and knows their pro's and con's and compares and gives examples of where either is best suited etc.
Six answers:
2013-09-30 01:47:30 UTC
The answer is that they aren't even the same thing. PHP is a dynamic scripting language. ASP.NET is a framework.



That said, PHP is very good at creating web pages that limited functionality. Basic static pages with some small dynamic content. Once you get beyond that, then you start looking for code "pieces" to use. A grid. A menu. Simplified database access libraries. Template Engines. Data caching libraries. Content caching libraries.



When you are done, you've basically hacked together your own custom PHP framework.



ASP.NET has all that in place, and quite honestly much much more. The larger the project, the better ASP.NET does. It's got more overhead in terms of learning and coding, but as the project complexity increases, ASP.NET code complexity is fairly linear. PHP code becomes exponentially more complex and time consuming.
Robert J
2013-09-29 19:32:55 UTC
PHP is a generic language available on all operating systems.



ASP.NET is a microsoft controlled language.



Stick with PHP.





[Electronics designer & programmer for 30+ years].
?
2013-09-29 19:31:05 UTC
Considering that ASP is only readily available on Windows server based sites, and 80 % of the Internet is run on Linux servers there is no argument. PHP is a standardised language which will run on ANY operating system based server. It has full control of the standard mysql database as a native program, without all the junk connection settings you need with asp, it has native mail control using the inbuilt sendmail system of those servers, without requiring clumsy smtp login sessions, and very simply handles building html pages from data. It also comes ready configured on any Apache (again the most common server used) web server distribution. It can also readily call javascript functions. And it is more stable than asp.
vishwa $$
2013-09-29 20:24:08 UTC
as a sw engg

i knw that java is a updated version of c++

for java it is c#

php is a free sw

but asp.net provide tool called visual studo

which is better

also .net framwork provide and support all language of .net

so u can use c# with asp.net

go for .net

as a knowledg learn php
amania_r
2013-09-30 14:25:26 UTC
The question should be ASP.NET or JSP/JSF or Python/Django or Ruby on Rails.



All have their merits.
daSVgrouch
2013-09-29 19:24:49 UTC
asp works in MS environments - why not open up your approach to the whole world


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...