CGICGI stands for common gateway interface. It is provided so that webpage visitor can send data to the server. It is not easy to understand the concept of CGI. As briefly explained in the basic concepts page, CGI is a way to call .cgi executables on the server machine and display the result using a web browser:
The .cgi executable can be written in any language. But the majority of them tend to be scripts, written using either the Perl programming language (powerful but complicated, recommended by our CSG), PHP (easy but sometimes too simple, therefore not recommended), or Python (yet another powerful scripting language.) Any .cgi executables in your public_html directory must have the suffix .cgi and need to meet the following conditions:
The best way to ensure that these conditions are met is to run the following commands in Linux:
Note that if executables are scripts*, they must be in Unix format, not Windows. The Programmer's File Editor ( Start -> Programs -> Editors -> PFE ) on Windows workstations has an option under "File/Save As" to use Linux format, or from the Linux command line dos2unix can be used to convert Windows files. We are going to demonstrate how to use FORM and perl script to enable your website keeping visitor messages. Next step, let's look at how to use FORM. |