Deprecated: Function create_function() is deprecated in /home2/blogwebhostingbu/public_html/wp-content/plugins/facebook-like-box-responsive/facebook-like-box.php on line 29
Introduction to CGI - WebHostingBuzz US Blog
Notice: Undefined variable: defaults in /home2/blogwebhostingbu/public_html/wp-content/plugins/fatpanda-facebook-comments/plugin.php on line 366
 

Introduction to CGI

Posted on 01 Mar 2007 by
Warning: printf(): Too few arguments in /home2/blogwebhostingbu/public_html/wp-content/themes/webhostingbuzz-blog/single.php on line 16

CGI (Common Gateway Interface) is a standard for running external programs from a Web server. CGI allows the returned HTML page to be dynamic – for example, with a CGI script you could access information in a database and format the results as part of an HTML page. Not surprisingly, CGI scripts are very popular and used extensively throughout the World Wide Web.

There are a number of very good introduction to CGI documents available on the Web. The information given below is a summary of the most important points to remember when using CGI.

The pre installed scripts available through CPanel are the easiest to use, but if a certain script does not do exactly what you want, feel free to look for better scripts on the Web. You can usually find a script to do almost anything, especially if you are prepared to pay.
Read all available documentation on a particular script before using it. This will help avoid most problems.
CHMOD (“Change Mode”) means change the permissions on a particular file (usually the script itself). The CPanel File Manager allows you to quickly do this, as do most FTP tools.
Important – after uploading cgi-bin scripts, CHMOD to 755 (unless the script documentation specifically states otherwise). For example, you need to CHMOD the pre-installed CPanel CGI EMail scripts to 755 to use them properly.
Many scripts need to know the path to Perl (scripting language engine) and to sendmail (HTTP mail engine). You can find this information on the front page of CPanel.

Make sure you test your scripts repeatedly! Testing is vital to make sure everything is working to your satisfaction.

WebHostingBuzz Logo

© WebHostingBuzz USA LLC 2002 - 2024
WebHostingBuzz is a Registered Trademark.
All Rights Reserved.
WebHostingBuzz USA LLC, 850 Southbridge Street, Auburn, MA 01501, USA

1 (800) 252-1887

Payment Logos
  • Webmoney Verified
  • Webmoney Accepted

Sign up for our Newsletter

Scroll to Top