docs.roxen.comView this page in a printer friendly mode
DocsRoxenWebServer 5.2System Developer Manual PikeProgramming Languages
Copyright © 2015, Roxen Internet Software
Suggestions, comments & compliments
manuals@roxen.com
 DEMO  DOCS  PIKE
 COMMUNITY  DOWNLOAD
www.roxen.com

   

Pike
Pike Script
Pike Processing Instruction
Java
Perl
Using In-Line Perl Code
Running Perl Scripts
Supported mod_perl API Methods
CGI
What is a CGI Script?
CGI Environment Variables
CGI I/O Via Standard Streams
PHP
Python

What is a CGI Script?

A CGI script is a program or script that is executed once for each request for it. The CGI script is either identified by file extension, for example .cgi, or by residing in a certain directory, for example /cgi-bin/. A request to a CGI script will be handled by finding the script and starting it with information about the request sent as environment variables and data on stdin. The script returns data by writing it to stdout.

The CGI script needs to be an executable file on the operating system. On Unix this is either a program, or a script that begins with #! followed by the name of the interpreter. On Windows this is either a program or a file with an extension bound to the suitable interpreter.