Introduction to Scripting Languages
It is safe to say that scripting languages play a tremendous role in powering the web. Aside from having the ability to create web pages, these scripts are able to create entire applications as well. In this article we will introduce you to the wonderful world of scripting and explain why these languages are so important.
The Purpose of Scripting Languages
Though very advanced, a computer cannot comprehend the commands of human speech. For example, you just can’t speak aloud and tell the computer to open your MS Word application. With scripting languages, the machine is able to follow commands and perform specific tasks. While they all have the same basic functions, there are many scripting languages available, most of which have different capabilities. Because the JavaScript language is event-driven, it typically waits for events to occur before taking action. This script is most often used to create pop-up windows and web forms. Another unique feature of JavaScript is its ability to change images when moving the mouse over them, similar to desktop scripting languages which are in the client-side genre as well.
Server-Side Scripting Languages
In general, client-side scripts are pretty much like any scripting language that uses other programs as interpreters. With server-side scripting, the interpreter is located within a high capacity computer more commonly known as a server. The interpreter inside of the server reads the scripting code and translates it to HTML so that it can read by a web browser which then displays the appropriate content on the user’s screen. Some of the most widely used server-side scripts today are PHP, Perl and ASP to name a few.
Some languages have a wide range of purposes though most are primarily used to generate dynamic web pages that can interact with the visitor. This dynamic form could be something as simple as one page letting a user know they are using the Firefox browser then giving a different notification when someone is browsing with Internet Explorer. This is rather basic, though many scripting languages are capable of much more. To give you an idea, some scripts are able to create web forms, shopping carts and blogging applications.
While training yourself on scripting languages, it is important to know that a script such as PHP is very different from HTML. When used alone, HTML does not have the power to create dynamic web pages, giving it the label of a static programming language that simply forms the structure and at times, the styling as well.
Choosing the Right Language
The best way to decide on a script for your site is to first determine exactly what it can do. You are more likely to get more use out of a server-side script such as PHP or Perl. These are multi-purpose solutions that have a wide range of uses. Best of all, they are open-source, meaning any provider offering them is likely to be cheaper. Open-source scripts also tend to have a greater level of support than commercial solutions such as ASP and ASP.NET.















