CGI scripts can exist in many forms -- depending upon what the server supports.
CGI scripts can be compiled programs or batch files or any executable entity. For simplicity we will use the term script for all CGI entities.
Typically CGI scripts are written in:
We will concentrate on Perl in this course (see below for why this is a good idea).
CGI scripts therefore have to be written (and maybe compiled) and checked for errors before they are run on the server.
CGI can be called and run in a variety of ways on the server.
The 2 most common ways of running a CGI script are:
One other way CGI scripts are called is in Server-side include HTML commands. This is something we will leave until later.