![]() |
Advantages of CGI![]() ![]() ![]() ![]() ![]()
Most often, dynamic documents are completely dynamic, at least from the server's perspective. That is, they are generated entirely by an outside program executed by the server. In essence, the outside program receives any user input associated with the document as its standard input, and outputs the generated document to standard output, along with important type information identifying the nature of the document. A standard has emerged for the construction of such completely dynamic documents by external programs installed on the server system. That standard is the Common Gateway Interface (CGI), and it regulates the environment in which such programs will execute. The Common Gateway Interface (CGI) is an interface to the Web server that enables you to extend the web server's functionality. Using CGI, you can interact with users who access your site. It is the manner of communication that a server employs to send useful information back and forth between your browser and a computer program on a web server. CGI communication is handled over the standard input and output, which means that if you know how to print and read data using your programming language, you can write a Web server application. Other than parsing the input and output, programming CGI applications is almost equivalent to programming any other application.
A CGI program can take advantage of any resource available to its output. It can also accept input from the user by accepting the contents of a form filled out by the user. These two basic capabilities have led to a wide variety of applications.
|
|
CGI
Advantages of CGI
How CGI Works
Compiled Versus Interpreted
Input to CGI
CGI Introduction Program
HTML Forms
Accepting Input from the Browser
CGI Environment Variables
Get Versus Post Method
Get Method
Post Method
Sample <FORM> Based CGI Program
Complete Example for <FORM>
Output from CGI
Header and Body:Anatomy of Server Response
HTTP Headers
Carriage Returns and Newlines
Formatting Output CGI Common MIME TypesLocation Header Useful HTTP Stautus Codes Other Headers Dynamic Pages Sending Images Displaying the Current Date Feedback Form Program Server Side Includes Server Side Include Environment Variables Displaying the Date with Date Counter Example of SSI Counting the Number of Accesses Better Approach Towards CGI Program Client Versus Server Accessing a HTML Document Submitting a Form Accessing a CGI Program Databases ODBC Creating a DSN Win32::ODBC Module Creating a Table Inserting Data into a Table Deleting Data from a Table
Updating Data in a Table
Selecting Data from a Table Operating Systems Security Securing Your Web Server Writing Secure CGI ProgramWeb DesignDomain Names Home
FAQ
My Account
IP Address
SSL Certificates DNSWeb Hosting Web Server Cheap Web Design Dedicated web hosting Managed web hostingE Commerce Principles of E-Commerce E-Banking Electronic Payment System E-Security Credit Cards Smart Cards
The Mailbox POP Server SMTP Server IMAP Protocol |
| Home | Web Hosting | Web Design | Sitemap |
| Copyright (C) 2007. Web Domain design hosting. All rights reserved. |