AdvancedNetworkHosts | Hosting Made Simple! Call Toll Free 1.866.203.9373 / 630.221.8451
Web HostingDedicated ServersResellersOrder Now!
HOME | ABOUT US | SERVICES | SUPPORT | CONTACT | SITE MAP
Back to SUPPORTBack to ONLINE MANUAL INDEX Go to Previous Page
     
 
ONLINE MANUAL
Chapter 6. Your Own CGI-SCRIPTS
        6.1 INSTALLING YOUR OWN CGI-SCRIPTS

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

Back to SUPPORTBack to ONLINE MANUAL INDEX Go to Previous Page
 
Email Sales or Call Toll Free: 1.866.203.9373 / 630.221.8451
Web Hosting | Dedicated Servers | Resellers | Services | Order Now!
Home | About Us | Support | Contact | Partners | Site Map | Privacy Statement | Terms of Use
Copyright © 2000-2003 AdvancedNetworkHosts. All Rights Reserved.