BILKENT UNIVERSITY
CS533 Information Retrieval Systems
Technical Presentation Web Site
Barýþ UZ
 
Index of
this page
Introduction
Push Technologies
Channels
CGI
ASP
Java
Streaming Media
 
Overview
Specifications
Getting information from the server
Sending information back to the user
Forms and other usages of CGI programs
Form and other examples and Links
 
Since a CGI program is executable, there should be some security precautions that needed to be implemented when CGI programs will be used. The CGI program should be placed under a special directory so that the web server knows to execute the program rather than just display it to the browser. This directory is under control of the web master and s/he does not allow an arbitrary user to create CGI program therein. There are some ways to access CGI programs which are specific to your system. 

The special directory is generally called /cgi-bin. A CGI program can be written in any language that the underlying operating system allow execution, such as: 
 

    C/C++ 
    Fortran 
    PERL 
    TCL 
    Any Unix Shell 
    Visual Basic 
    AppleScript
If you are using a programming language like C or Fortran, you know that you must compile the program before it will run. If you are using one of the scripting languages, such as PERL, TCL or a UNIX shell, the script itself only needs to reside in the /cgi-bin directory, since there is no associated source code. Many people prefer to write CGI scripts instead of programs as they are easier to debug, modify and maintain than a typical compiled program.
 
PREVIOUS TOPIC
UP
(First page of this topic)
NEXT TOPIC
PREVIOUS PAGE 
(of this topic)
NEXT PAGE 
(of this topic)