Here is the main difference between the different scripting languages which most of them get confuse.
PHP
PHP uses a blend of interpretation and compilation in order to provide the best mix of performance and flexibility to programmers.
Hypertext Preprocessor (the name is a recursive acronym) is a widely used, general-purpose scripting language that was originally designed for web development to produce dynamic web pages. For this purpose, PHP code is embedded into the HTML source document and interpreted by a web server with a PHP processor module, which generates the web page document. As a general-purpose programming language, PHP code is processed by an interpreter application in command-line mode performing desired operating system operations and producing program output on its standard output channel. It may also function as a graphical application. PHP is available as a processor for most modern web servers and as standalone interpreter on most operating systems and computing platforms.
Behind the scenes, PHP compiles your script down to a series of instructions (called opcodes) whenever it is accessed. These instructions are then executed one by one until the script terminates. This is different from conventional compiled languages such as C++ where the code is compiled down to native executable code then that executable is run from then on. Instead, PHP re-compiles your script each time it is requested.
This constant recompilation may seem a waste of processor time, but it is actually not all that bad because you no longer need to worry about hand recompiling your scripts when you make any changes. On the flip side, many scripts take longer to compile than they do to execute!
Furthermore, it provides very quick feedback during development. If you have an error somewhere in your file, PHP will refuse to compile the page until you have fixed the problem, and you are able to step through execution of your code line by line until you find the problem.
The speed hit of regular compilation is nullified entirely by the use of PHP accelerators.
One major advantage to having interpreted code is that all memory used by the script is managed by PHP, and the language automatically cleans up after every script has finished. This means that you do not need to worry about closing database links, freeing memory assigned to images, and so on, because PHP will do it for you. That is not to say you should be lazy and make PHP do all the work – good programmers clean up themselves, and let PHP work as backup in case something is missed.
Perl
Perl is the most popular of the PHP alternatives out there, arguably because it is also the oldest. There is a large installed base of Perl out there; many open-source projects require Perl to be installed to work properly.
Perl is a high-level, general-purpose, interpreted, dynamic programming language. Perl was originally developed by Larry Wall in 1987 as a general-purpose Unix scripting language to make report processing easier. Since then, it has undergone many changes and revisions and become widely popular amongst programmers. Larry Wall continues to oversee development of the core language.
It has the advantages of being very (very!) flexible, and also having a large collection of modules already written for it. However, it is let down by the fact that it is very easy to write obfuscated and confusing Perl without really realising you are doing so, and this has resulted in such marvels as the annual Obfuscated Perl Contest.
Well-written Perl scripts often look fairly like their PHP equivalent. The major cause for Perl’s messy appearance is that many Perl programmers rely on “one-liners” – packing large amounts of functionality into just one line of code. Perl was once described very accurately by its creator, Larry Wall, when he argued that the front cover for his O’Reilly book on Perl should be a camel, saying that Perl was ugly but serviceable, and able to go long distances without much nourishment.
Perl is often a better choice when you want to take advantage of some of the pre-written libraries. CPAN, Perl’s library repository, is very big, and there is a huge range of code for you to take, customise, and re-use. Perl also has a very active – and very cool – hacker community around it that’s a whole lot of fun to be part of and is really a bedrock of support when you need it. Larry Wall and Damian Conway (both core Perl developers) are both rightfully revered as “alpha geeks” – people who really push the envelope of programming by doing cool new things. They are both very friendly, and and attend many conferences year round – go ahead and introduce yourself if you meet them, because they really are fascinating to talk to.
ASP
Active Server Pages (ASP) and ASP.NET is Microsoft’s attempt to succeed in the web development market, and comes as standard with their web server, IIS. ASP has been mauled by the open source community ever since it came out, and they gave a variety of reasons: it is proprietary, single platform (Windows), and slow.
Active Server Pages (ASP), also known as Classic ASP or ASP Classic, was Microsoft's first server-side script engine for dynamically-generated web pages. Initially released as an add-on to Internet Information Services (IIS) via the Windows NT 4.0 Option Pack, it was subsequently included as a free component of Windows Server (since the initial release of Windows 2000 Server). It has now been superseded by ASP.NET.
I would like to say, “Yes, yes, and yes”, but I’m not going to try to pull the wool over your eyes. The reality is that ASP has been implemented on other platforms, and, when running on Windows and Microsoft Internet Information Services (IIS), is actually lightning-fast.
That coupled with the fact that you can write add-on modules for ASP using Visual Basic and COM would make the whole solution very attractive indeed if it were not for the fact that ASP only really works well on IIS. On other platforms there are many fewer features, and it generally runs a great deal slower. When running on Windows, the security issues and licensing costs tends to be the most important thing, particularly when an all-Microsoft solution stack is being used.
And ASP/ASP.NET is generally favoured when an all-Microsoft stack is in place. When used on Windows, it is very easy to deploy .NET code to ASP.NET pages or even write your ASP pages using C#.
ColdFusion
Most of the content about cold fusion was taken from the comment by - Jason Dean, You can also read that below to know what i wrote before and how i changed now.
ColdFusion became quite popular back in the hey-days of the dot.com boom. ColdFusion can be developed with any text editor, just like any other scripting language. It has an IDE, but you don't need to use it if you don't want to.
ColdFusion performs fairly well. Its development speed is good. ColdFusion was bought out by Macromedia but now it is owned by Adobe.
With ColdFusion you have COMPLETE control over the source code. Additionally, you can access the underlying Java if ColdFusion is missing something that you need. You can also develop your own Java to add even MORE functionality to ColdFusion.
If something goes wrong in your code, it’s normally very easy to track it down and solve the problem, or change your plans and implement a different solution to the same problem.
ColdFusion has design patterns that you can use or you can develop your own. Just like ANY OTHER LANGUAGE. There are many ways to skin the cat. There are no limitations to how you solve the problem.
ColdFusion used to be quite popular back in the hey-days of the dot.com boom because it is developed using a proprietary IDE designed for novice programmers who have no wish to see source code of any complexity.
One of the nicer features of ColdFusion is that it comes with a whole application to help you write it the language. While it can be used with Apache or IIS once you're finished, this application effectively acts as your test server while you're writing your scripts, saving you quite a lot of trouble.
The biggest advantage to ColdFusion "EASY TO LEARN" is its IDE and the language it uses, “CFML” (ColdFusion Markup Language) – even junior programmers can learn the system and start making pages quickly. As a result, you will often find ColdFusion in use at very large companies where they use Visual Basic (another easy, but not very powerful or fast language) for offline work.
One of the things that make ColdFusion easy to learn is that it isn't all that different from normal HTML: it acts more like a set of extension tags for HTML than like trying to get a programming language to do things and output HTML afterwards. This is because it was designed from scratch for the web – it's not just a normal language trying to be web-compatible.
ColdFusion on the web can sometimes be unreliable and slow, mainly because it runs on a Java framework. Its Java support does, however, make it capable of running on many more operating systems than it otherwise would be – for most purposes, having written a page in ColdFusion is as good as having used Java for it, but much less difficult. Since ColdFusion also uses the ODBC (Open Database Connectivity) standard instead of tying itself down to one database, this gives you a lot of choices.
Integration with Other Macromedia Products: If you already design your pages in Dreamweaver, it can be good to do the scripting in ColdFusion, as you get the advantages that integration between the two gives you. You can insert ColdFusion code into Dreamweaver files quickly and easily, and you can even use its built-in editor to edit the code however you want without messing up Dreamweaver's WYSIWYG view. ColdFusion also integrates surprisingly well with Macromedia's flagship product, Flash – but don't let that lead you into developing nothing but ColdFusion-scripted websites with fancy Flash interfaces, whatever you do.
JSP
Java Servlet Pages has often been considered the “dark horse” in web scripting because at first many thought it would be overkill for the job and yet has managed to get quite a substantial community about it nonetheless. JSP has three key advantages over some of its competitors, which may be why it has done so well:
- It uses Java, a language that already has a large skill set of developers and a massive amount of functionality available. Java is also conducive to scalability as it distributes across multiple computers well. Sun, as well as other members of the community, has worked hard to promote the language and tools that support it, which means that JSP has a lot of backing inside larger enterprises.
- It strongly encourages templating of pages for maximum code re-use. Templates for PHP are widely available, but they are a great deal more popular in JSP.
- It is a common argument that because JSP is based on Java it scales better than PHP. This is not correct per se in the same way that most other over-generalisations are not correct (yes, I realise that is an over-generalisation too, and hence you are free to enjoy the irony!) – PHP scales perfectly well as long as you write your PHP scripts usi andng the same design patterns you would have used writing your JSPs.
JSP is a popular choice when existing back-end business logic is written in Java also, as this keeps the development team language-homogeneous.
And Finally, Thanks to all comments for making me write an article with absolutely no knowledge about any of the above codes! Thanks Every One! And i will update as and when people give more comments! And I have published every comment except one comment saying "You Coward, Turning on comment moderation, just admint you are wrong.- Jason Dean" I turned moderation for some other reason Jason. Thankyou for your help I just made one quality post with your help. Really thank you.