Why Arent You Using CGI


Michael Southon

The very name CGI used to send chills up my spine. For years I put it in the too-hard-basket. But like most things in life, CGI is not as scary as it seems. If you have a cgi directory on your website and you know how to FTP files, chances are you can have a CGI script up and running in less than 20 minutes.

CGI Common Gateway Interface is not a programming language but a standard that allows visitors to interact with your website. CGI scripts can be written in a number of different languages but most are written in Perl Practical Extraction and Reporting Language.

This article gives you details of five free CGI scripts that will do the following:

  1. Mail out your Newsletter from your server
  2. Track the number of times your free E-Book is downloaded
  3. Rotate banners on your website
  4. Create your own auto responders
  5. Allow visitors to recommend your website to friends

At the end of this article are details of where to download these 5 free scripts. But first, here are some basic guidelines on how to configure and install CGI scripts:

1. CGI programs usually come in a zip file. Unzip the file and open the README file. This document will give you instructions for configuring the program file.

2. Open the program file using a text editor such as NOTEPAD the program file will usually have the file extension .cgi but may have other extensions such as pl.

In most CGI programs you will have to configure the following 4 items:

a the path to perl

This is where the perl program resides on your server. The path will usually be:

#!/usr/bin/perl

but could be:

#!/usr/local/bin/perl

If youre unsure what your path to perl is, check your web hosts online manual or FAQs. If you cant find it there, simply ask your web host.

b the path to sendmail

Most CGI programs notify you when your visitors have completed a particular action, and for that, the program needs to know where the sendmail program resides on your server. The path to your UNIX sendmail program will usually be: /usr/sbin/sendmail

But it could also be something like this:

/usr/lib/sendmail

Again, check the documentation on your web hosts website, or simply ask your web host.

c the absolute path to your CGI directory

The absolute path tells the CGI program exactly where to find the file or files that it needs to open. Unfortunately, the absolute path to your CGI directory is not

RELATED ARTICLES
Optimal Website Design
The idea behind good website design is to offer your viewer a logical flow while making it interesting and easy to navigate.
Web Accessibility. . . Making your Pages Friendly to People with Disabilities
Did you know that nearly 20 percent of all Web users have some form of disability
Website Theft - Part 1 of 3 ~ What exactly is Copyright
Please note that some of the information included in this article has been quoted from various locations while other information is simply my personal opinion and you will probably feel my passion in my words.
web page building for beginners 2
A search engine robot actually reads the wording on your web pages and places a certain amount of importance on what the content says, but not quite like a human does. A human will place the words together in their head and try to decipher the relevancy to them personally and decide within a few seconds whether they will continue reading or click to another site, whereas a robot counts words and places all relevancy in the numbers it finds. It also gives extra credit to the size of the type and title of each page. What a webmaster should consider, is every word connecting to a keyword and not wasting words, for the public and the robots. This can be difficult to do when writing about certain subjects, but not impossible. Take diets for instance. Saquoyah Publishing writes diets and uses www.free-diet.biz to promote them, but nobody wants to read pages full of the word diet just bandied around with no oomph in the article that should teach the reader about diets. So a happy medium must be reached to get the website placed high in the search engines database, yet allow the articles to inform the reader of the subject written. Remember, the information super highway is called that for a good reason. Most people just want to learn something about a subject, not necessarily buy something. So if you are selling, the first thing you will want is to get the reader to find the pages you have written, and that means search engine optimization, or SEO as it is called.
How to find good Web Hosting for your site!
When building your first site the main things that you will probably think about is what types of content you will be adding to your site, how you are going to get visitors to your site and how you are going to generate good revenue from your site.
If you need More Targeted Visitors to Your Site this Will get the Free Traffic Flowing
If you dont know by now one the best ways to attract free traffic to your site is with articles. You find them in your email. You find them on any website that provides useful content. Take a look and you will see they are all formatted the same way.
Image Formats-GIF, JPEG, BMP
When browsing the internet you are likely to come across many different image formats. However, the most common formats are: CompuServe GIF, JPEG, and Bitmaps.
Website Development: Become Your Own Expert
Starting and maintaining a business is challenging enough without the additional financial burden of hiring a web site expert to put your vision on paper.If you are starting your business on a “shoe string budget,” hiring someone to take your written materials to type in a basic format, add a few pictures and edit what you tell them periodically may not be sound money management.
Forums – Should you have them on your website
Forums have become a common feature in many websites. With good free scripts available, and paid scripts being relatively cheap, it seems that every new website has its own forums. But is it wise to add forums to your website
How Much Does A Website Cost
To receive a complementary consultation and free quote for your website project, complete our project survey form located here.
Having Your Personal Portfolio On The Internet Will Help You Infiltrate The Workforce And Get Your Identity ‘Out There’.
If you’re an up and coming graphic/web designer just out of university, you’ll know it’s quite hard to break into the workforce. You have to contact employers one by one, spend your time traveling and lugging your portfolio to their offices. Well, things have changed, and for the better let me tell you. Now you can make your own on-line portfolio on the Internet, and send its web page address to numerous design companies at once so they can all see your work easily. You don’t even have to leave your house and organizations all over the world can access your work easily.
Web Site Professionalism What Is It
Your web site should be-visitor friendly to navigatesearch engine friendly for the crawlersAutomated with ecommerce and subscription forms...
MySQL Database Handling in PHP
Most interactive websites nowadays require data to be presented dynamically and interactively based on input from the user. For example, a customer may need to log into a retail website to check his purchasing history. In this instance, the website would have stored two types of data in order for the customer to perform the check – the customer’s personal login details; and the customer’s purchased items. This data can be stored in two types of storage – flat files or databases.
Why Optimize Your Site For Search Engines
Sometimes a search engine optimization company will miss that glaring question posed by potential clients and assume the benefits of search engine optimization are obvious to everyone. While shelling out a couple thousand on an SEO campaign is common sense to some, others may find it hard to part with the cash unless they know it is an investment in their business that is sure to bring a good return.
Growing Your Business In CyberSpace
A synopsis of Philippa Gamses Presentation to the National Speakers Association, Washington DC chapter on Saturday, January 10, 2004
"Im just me" - An Overview of an Web er.. Designer, Developer, Consultant and Friend
"Im just me" - An Overview of an Web er.. Designer, Developer, Consultant and Friend.
How to Create a Useful, Popular Website
Everything I tell you will also be free. Youll spend some time, but you wont spend your money.
Keep Your Website Up-To-Date
In almost every business publication there are articles telling us how, as a small business, we need to have a website. This is very true! The Internet is where most people go to find a product or service that they are interested in or may have heard about. And, if your business is capable of serving customers throughout the globe, what better way to keep your information available to that huge target audience than an Internet presence
What makes a good Web Hosting Provider!
When building your website and getting it hosted online, you want your site to be up and running on the World Wide Web 24/7 without any hitches so that it is making you money all the time and all you have to worry about then is getting visitors to your site, doing seo, getting repeat visitors, maximizing your sites revenue, etc. You don’t want to have to worry about your web hosting and it’s stability.
Custom Hooks in TierDeveloper
Custom Hooks is another powerful and most demanding feature provided by TierDeveloper. Custom Hooks work like database triggers. It could be your own business logic that you can activate before or after performing some database actions. PreHooks and PostHooks are two ways, provided by TierDeveloper, through which you can embed your own logic in the generated code. Pre hook methods are called before the database access is performed whereas post hook methods are called after the database operations are performed.

home | site map
© 2005