1. Technology

Types of Web Files - Scripts

What Do All Those File Types Mean?

By

Scripts are files that activate dynamic actions on websites. There are many types of scripts. These are just a few that are fairly comon on websites.

.cgi
CGI stands for Common Gateway Interface. A .cgi file is a file that will run on the web server and interact with the web user. CGI files can be written with many different programming languages, like Perl, C, Tcl, and others. A CGI file does not have to have the .cgi extension, you might also see them in /cgi-bin directories on websites.

.pl
This extension indicates a Perl file. Many web servers will run a .pl file as a CGI.

.js
A .js file is a JavaScript file. You can load your JavaScript files into the web page itself, or you can write JavaScript and place it in an external file and load it from there. If you write your JavaScript into the web page you won't see the .js extension, as it will be part of the HTML file.

.java or .class
Java is a completely different programming language from JavaScript. And these two extensions are often associated with Java programs. While you probably won't come across a .java or .class file on a web page, these files are often used to generate Java applets for web pages.

On the next page you’ll learn about server-side scripts that are very common on web pages.

©2014 About.com. All rights reserved.