| CGI-SCRIPTS are computer programs
running on the webserver that can be invoked from a web page
in the browser. These programs adds functionality to web pages
that are not possible with just HTML.
CGI scripts need to be saved in ASCII format and uploaded
to your server's cgi-bin in ASCII or text format.
General Script Information:
If a script calls another file within your account, but the
script does NOT require a URL, you need to use the system
path. Instead of using the absolute path to your home directory,
you should instead use the DOCUMENT_ROOT environment variable
($ENV{DOCUMENT_ROOT} in Perl) to determine the path of your
files or programs within a script.
Change this: /www23/web/yourid/data/fact.html
To this: $ENV{DOCUMENT_ROOT}/data/fact.html
The system path to the sendmail program on our UNIX server
is /usr/lib/sendmail
The system path to the date command on our UNIX server is
/sbin/date
|