Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I want to know the details of websites developed using the different languages like .Net, Java, PHP, Python. Which programming language is mostly used?

share|improve this question
    
This has been converted to community wiki because there is no definitive answer and any answer could be argumentative. This is not really on topic for our website but I will leave it open because there are a number of good answers already. –  RandomBen Aug 3 '11 at 13:03

3 Answers 3

TIOBE publish a monthly league table of the most popular programming languages. The four you mention are currently ranked in the following order:

  1. Java
  2. C#
  3. PHP
  4. Python

Note that the TIOBE tables are based on an algorithm that tries to determine the number of lines of code written in each language every month using results from the major search engines, so they're not necessarily an indication of the number of websites using those programming languages, but it probably gives a fair indication.

What it doesn't take into account is the number of websites deployed using off-the-shelf blogging packages and CMS such as WordPress etc. If it were possible to count the number of active websites using each programming language, I suspect PHP would come slightly higher than the popularity table suggests.

Netcraft also surveys millions of sites every month to determine what server platform they use. The latest results available to date (July 2011) won't give you a precise indication of the underlying programming language (only the web server), but it serves as a useful reference point:

popular web servers across all domains, as surveyed by netcraft

Data on programming language use among active websites is very hard to come by, largely because it's not always obvious from generated code and server responses which language is being used. As such, it's hard to tell what language a site's written in without asking.

share|improve this answer
    
Can you please provide any other link. Here we want to find out whether most sites hosted by Java technologies or Microsoft technologies. –  Krishna Jul 18 '11 at 10:45
2  
@Krishna Answer updated with more information regarding web servers. You're unlikely to find any meaningful data on active sites and programming languages, though. (I'm not sure how useful it would be if you did have it, to be honest; it's best to evaluate technologies based on your own needs, not on how many other people use X over Y.) –  Nick Jul 18 '11 at 15:16
2  
This information is misleading, Java, C# and Python are also used in desktop development, and TIOBE counts these uses too. –  user5888 Jul 24 '11 at 2:10
    
@M28 I mention that it's only a rough indication in my answer. –  Nick Jul 24 '11 at 15:43
1  
@Nick I don't think it's anywhere near a "rough indication". Very few websites use Java as a back-end. C# and PHP show almost the same usage, and 99% of PHP is on websites whereas for C# it could easily be 50%. –  DisgruntledGoat Aug 2 '11 at 11:08

PHP is the most used by far. The fact the entire stack is free helps but it gained its popularity because of the ease of integration. It is extremely easy combine static HTML with PHP or even add features to a static side.

There is also a huge volume of general-purpose platforms written in PHP. Think that every Wordpress-Powered blog or site is a PHP site. There are tons more and plenty of others are hugely popular.

It turns out that the most popular is different from the most used depending how you count. For very large and complex sites, people tend to prefer something more structured such as Python, Java and C++. Often, the largest sites will use a combination of languages.

For historical reasons, certain languages get adopted at different rates depending on the domain. For example, after PHP, content sites often use Python. Banking and service sites are more likely to use Java. C++ and assembly is often used to boost performance in key areas but I have not seen any (there probably are some though) written entirely using these.

share|improve this answer
5  
citation needed –  kzh Jul 18 '11 at 17:19
1  
For the top server-side language being PHP: w3techs.com/technologies/overview/programming_language/all –  Itai Jul 19 '11 at 14:54
    
I added this link to the actual question where it should be, but I do not have enough rep so it is waiting on approval. –  kzh Jul 19 '11 at 15:08
    
Just to remember: Typo3 also is PHP-based. –  Paramaeleon Apr 26 '13 at 7:12
    
Their methodology is rather flawed. It looks like they determine the language used by looking at file extensions in the URL … and the top three languages are the ones I'd have said were the most likely to have file extensions in the URL. –  Quentin Jun 15 '13 at 10:07

PHP is mostly used in web development and Java & asp.net are also popular.

For larger websites combination of languages like Java, Python, PHP are used (like for Facebook).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.