search engine placement by A Better Server
Return to the Home Page

Tech support by A Better Server
Designer Help
HTML
Programming



better web hosting

Implementing Custom CGI scripts

 

Our servers have the capability to run CGI scripts based on Perl, Unix SH, KSH, CSH, and C +, C++ languages. Perl5.00503 is a our language of choice as it is a world standard and is well suited to CGI.

If you have a custom CGI script that you need to use, simply upload it to your personal "cgi-bin".

Here are some helpful tips to follow when installing scripts;

Shell Scripts

  1. Upload to your cgi-local directory to ensure proper file permission settings.
  2. Upload in ASCII transfer mode (and NOT BINARY mode)
  3. The first line of each script must read: #!/bin/sh , #!/bin/csh or #!/bin/ksh based on whichever shell scripts you prefer using.
  4. Reference the script using /cgi-bin
  5. Always remember to include echo "Content-type: text/html\n\n"

Perl Scripts

  1. Upload to your cgi-bin directory to ensure proper file permission settings
  2. Upload in ASCII transfer mode (and NOT BINARY mode)
  3. The first line of each script must read: #!/usr/bin/perl
  4. Reference the script using /cgi-bin
  5. Always remember to include print "Content-type: text/html\n\n"; or alternatively using the Perl module CGI.pm (If you do not, your scripts will not run and you will get an Internal Server Error message).

    use CGI qw(:cgi-lib :standard);
    print header();

Other Resources
A Better Server Main Link Directory
ASP | Perl | SQL | Oracle | CAD | JavaScript | VB
www.perl.com Everything you need to know about perl.
Perl and CGI by Elizabeth Castro # 1 best seller

Place your Order Today
Read our Acceptable Uses Policy and Frequently Asked Questions
Need more features? You can add additional features just ask.
   
Add URL  |  Portfolio  | Contact |  Home | Hosting | Links 
 Search Engine Marketing | Site Map |Support | Web Site Designer

A Better Server Search Engine Placement Services
Santa Rosa CA. 95404
Copyright © 1997-2005 (707) 526 0580