What is
CGI
- The Common Gateway
Interface, or CGI, is a standard for external gateway
programs to interface with information servers such as
HTTP servers. A plain HTML document that the Web daemon
retrieves is static, which means it exists in a constant
state: a text file that doesn't change. CGI
program, on the other hand, is executed in real-time, so
that it can output dynamic information.
.
- Is
it a script or a language?
.
- The distinction is
semantic. Traditionally, compiled executables (binaries)
are called programs, and interpreted programs are
usually called scripts. In the context of CGI, the
distinction has become even more blurred than before.
The words are often used interchangably (including in
this document). Current usage favours the word
"scripts" for CGI programs.
.
- When
do I need to use CGI
.
- There are innumerable
responses to this answer, but basically any Webpage
containing a form will require a CGI script or program
to process the form inputs. Most servers who you host
with will have the basic CGI scripts set up already for
you.
.
- Should
I use CGI or JAVA
-
- CGI and JAVA are
fundamentally different, and for most applications are
NOT interchangeable.
CGI is a protocol for running programs on a WWW server.
Whilst JAVA can also be used for that, and even has a
standardised API (the servlet, which is indeed an
alternative to CGI), the major role of JAVA on the Web
is for client side programming (the applet).
In certain instances the two may be combined in a single
application: for example a JAVA applet to define a
region of interest from a geographical map, together
with a CGI script to process a query for the area
defined.
-
- LINKS
- Provided by the CGI Directory
-
- Welcome to the CGI
Directory. There are currently 1079 resources listed.
- Scripts
Browse or search
through hundreds of CGI scripts in our extensive
directory. Over 20 different categories of scripts are
available.
Tutorials
Learn CGI programming through online documents and
tutorials. These tutorials cover a broad range of CGI topics
and are suitable for beginners as well as more advanced
programmers.
FAQ
If you are having a tough time finding answers to your CGI
related questions, try looking through these frequently
asked question collections.
Books
Whether you are just starting out or have been writing CGI
scripts for a while, a good CGI book is an invaluable
resource.
News
Groups
News groups are excellent resources for CGI and web
programming information.
Related
Resources
Hundreds of CGI related sites exist on the Web. This list
contains some of the most useful sites.
Also
you can look in our hosting section
CGI
Script Installation Tutorial
By Benny
Alexander
This article is to make
your CGI-Installation work a lot easier. I have written it
from my experience and I've tried to make this tutorial a
guide for CGI/Perl script installation. You can learn
everything you want to know about integrating your site with
CGI scripts and hence about interactivity. You can skip some
of the sections in the beginning, if you know the basics of
CGI.
You should be familiar with
technical jargon like FTP,Telnet,Unix and other Net terms
before starting any script installation.
1.
Why a Script?
2.
OK, Why CGI scripts?
3.
What is a CGI anyway?
4.
Where can I get a CGI script?
5.
Can I install a CGI script in any server?
6.
What kind of scripts do I need?
7.
Selecting and evaluating a script!
8.
Getting ready to install
9.
Start Installation now
10.
Learn from Errors!
11.
Still the error chases?
|