|
|
CGI
is programming. Don't be mistaken into thinking it is
as easy as HTML. It isn't. |
|
|
We
recommend placing your own CGI scripts in your own cgibin
directory to help consolidate them. On Unix servers, use
the 'cgibin' directory. On Linux servers you will want
to use the 'cgi-bin' directory. |
|
|
If
a script calls another file within your account, but the
script does NOT require a URL, you need to use the system
path as specified in your welcome. For example, if the
file resides in the your root directory and you are on
a Unix server, the system path name would be: /web/guide/domainname/...
if the file resides in your cgibin directory, the system
path would be:
/web/guide/domainname/cgibin/...
If your domain is on a Linux server, the system path would
be /data/web/domainID#/... |
|
|
The
path to sendmail on our system is /usr/sbin/sendmail
|
|
|
Any
script must end in .cgi to ensure execution. |
|
|
The
first line of each script should read: #!
/usr/local/bin/perl |
|
|
Scripts
must be made executable with chmod 755 filename. This
can be done with your FTP software. |
|
|
Upload
CGI scripts in ASCII transfer mode (NOT BINARY mode).
Those using Fetch should use Text mode (not Raw Data).
|