Skip to Content

Home > Computer & Electronic > Building A Website Tips > CGI: Common Gateway Interface

CGI: Common Gateway Interface

Links

CGI Programming

There are basically two ways to write a CGI script- in C, or Perl. The advantage of C is that it's a compiled language, so it tends to be more efficient than Perl. However, Perl, with it's advanced data handling capabilities (such as regular expressions) and open source nature, makes it the choice of most people when it comes to CGI programming. This tutorial is on how to program in CGI using Perl.

 


Added: Mon Jun 13 2005
Views: 75

Overview of CGI

So what exactly is CGI? CGI stands for Common Gateway Interface. Any script can be called a CGI script as long as it's installed on the server end. However, the majority of CGI scripts are written in Perl (with C being the next most common). If you want to write your own CGI scripts, you'll need to learn Perl. It is exactly the fact that CGI is installed on the server end that makes it able to do all those amazing things such submit a form, create a guest book or forum, keep track of and rotate your ads etc. The server has the capability to redirect data to any email address, persist data, dynamically serve out different content to the browser, among many other things that the browser alone simply cannot do.

 


Added: Mon Jun 13 2005
Views: 72

SOME BITS ON PERMISSIONS

If paths make up half the questions on scripts, the other half have to do with unix file permissions! Here is everything you need to know about setting these little nasties up correctly.

 


Added: Mon Jun 13 2005
Views: 71

THE POOP ON PATHS

I would have to say that at least half the script questions that I get (and can't answer) have to do with paths. Even if you don't mess with scripts, read on anyway as this information can also help you layout and manage your website Knowing your path information is critical if you need to run scripts that will either read from or write to a file(s). The path tells the script exactly where to find the file that must be opened. Without this information your script will fail.

 


Added: Mon Jun 13 2005
Views: 58