Hosting Services > Developer's Corner > CGI

CGI Quick Reference 

 

Perl location:

#!/usr/bin/perl
(perl is version 5.008006)

 

Sendmail location:

/usr/sbin/sendmail
(use the
-t option)

 

Path to home directory:

/usr/home/yourname.com
$ENV{'DOCUMENT_ROOT'}/.. (preferred)

 

Path to document root:

/usr/home/yourname.com/htdocs
$ENV{'DOCUMENT_ROOT'} (preferred)

 

Path to cgi-bin directory:

/usr/home/yourname.com/htdocs/cgi-bin
$ENV{'DOCUMENT_ROOT'}/cgi-bin (preferred)

 

How to chmod files:

Use Webby, or FTP.