Web Design Services Multimedia Consulting Services Research Services Our Clients Search Engine Info Contact Us
CGI, PERL, and Server Side Includes
Main Site
Web Design Resources Resources & Tools  
Web Page Authoring Tools Authoring Tools  
HTML Reference HTML Reference  
Image Editing Software Image Editing  
Javascript  Links Javascript  
PERL/CGI/SSI
PHP & MySQL PHP/MySQL  
Flash Macromedia Flash  
Web Audio Web Audio  
Java Applets  

Perl, CGI, SSI
Dynamic Web Page Content

Whether you need features like a blog, a contact form, banner ad rotation, or a way to manage your site content because your site's grown too large to manage the static pages, you can probably find a relatively easy way to take care of things with Perl or Server-Side-Includes. The availability of free scripts combined with a massive support community and simplicity of code makes Perl an especially appealing option for adding some dynamic features to your site without becoming a programmer.

Server Side Includes (SSI)

We're touching on these first, because they're so thoroughly overlooked. SSI's allow you (if your server is configured to do so) to do an amazing variety of things very simply. You can rotate content, show the time, control actions based on time and date, detect browsers, all sorts of useful stuff. There's amazingly little out there about SSI's, however, so you'll have to take what you can find and be inventive.

SSI's make it possible to do things like display the information below:


Your Browser:
CCBot/2.0 (https://commoncrawl.org/faq/)
The Page You Came From:
(none)
Your IP Address:
54.225.38.2
The Date And Time You Came Here:
Wednesday, August 15, 2018, 02:45:20 PM EDT

But the real power lies in choosing what to do with that information. You can also use an "include" statement to include files based on different variables like time/date, browser, etc. Check out the links to BigNoseBird's SSI pages. They remain the user-friendliest intro to this we've come across.

What is CGI?

The NCSA puts it very well: "The Common Gateway Interface (CGI) is a standard for interfacing external applications with information servers, such as HTTP or Web servers. A plain HTML document that the Web daemon retrieves is static, which means it exists in a constant state: a text file that doesn't change. A CGI program, on the other hand, is executed in real-time, so that it can output dynamic information."

In simpler terms, it lets you take that attractive but static page you've created, and give it some life.

And Perl?

It's a high-level programming language, according to perl.org. Some codeheads deny it this status, insisting that it's a "glue language" or "scripting language". The fact is, you can use Perl for just about anything you want, but all we're concerned with is how we can use it for web applications. Most commonly you'll see it used for things like e-mail management, database interaction, bulletin boards, and counters. The possibilities are endless. Check out the recommended links to learn more.


Recommended Reading:
An excellent primer if you're completely new to Perl:

Perl and CGI for the World Wide Web: Visual QuickStart Guide, Second Edition

If you're a programmer, learn Perl from the man who created it (this book is definitely not for novices):
Programming Perl
Programming Perl
(3rd Edition)


Recommended Links:

PageResource.com
A great primer for getting started with CGI and Perl

CGI Resource Index
Thousands of Perl scripts for your site, many of them free.

The CGI Site
Complete documentation of CGI with examples and archives.

The Perl Directory
The central directory of all things Perl


Apache SSI Tutorial
Apache's introduction to Server Side Includes

BigNoseBird's Server Side Include Page
Still one of the friendliest introductions to SSI on the web

Web Design Group's CGI FAQ Page
An excellent set of Q's, all A'd very well.
Web Design | Multimedia | Consulting | Copywriting | Broadband & Wireless | Web Hosting | Music Industry | Contact | Clients | Search Engines | Printers & PC's | Investing | About Us | Web Design Resources | Index
Landing Page Interfluence Landing Page