CGI
scripts are commonly available as open-source (free/shareware) on
the Internet and generally need to be edited for each individual use.
Since they are text-based documents you can open a script in Notepad
and perform your own editing. Specifically, each script defines the
variables used for capturing data, which are the same variables you
use in defining your form elements, the operating system used on the
server and the paths to the appropriate programming application. Consult
your host to determine the exact paths to the program and if they
require that you install the script in a special folder (i.e. cgi-bin
or cgi-local).
It is also important to note that when you FTP a CGI script to your
server, use must use ASCII mode and not binary mode, otherwise the
script will fail to function. In addition, on UNIX servers, you must
use the UNIX chmod to set the permissions of the script so that it
is accessible and executable. In the WS_FTP program you can do so
by right-clicking on the file after you've uploaded it and choosing
chmod. Set the permissions in the dialog that appears. If your host
does not allow you to run CGI scripts, many third-party Web sites
allow you to run scripts remotely. Check out CGI
Resources for more information.