CGI Scripts FAQ

What is a CGI script?
Does Hostway support CGI scripts?
What is a CGI bin? What is it used for?
What languages can I use to write my CGI scripts and programs?
Can I install my own CGI scripts and programs?
What CGI scripts are available to me?


What is a CGI script?

Common Gateway Interface (CGI) is a standard method of transmitting information between an application and a Web server. CGI scripts are used to supplement basic HTML pages by making your Web site more interactive and functional. You can program many useful features in CGI scripts, such as hit counters, guest books, order forms and message boards. CGI is an alternative to Microsoft Active Server Pages (ASP).


Does Optimum Online Web hosting support CGI scripts?

All of our plans support CGI scripts and provide you with your own CGI bin in which you can place your CGI scripts.

Optimum Online Web Hosting customers on the default (Linux) platform have access to a free library of CGI scripts that you can use to enhance your Web site. These scripts are installed in your account and are ready to run.


What is a CGI bin? What is it used for?

The CGI bin is the directory where all of your CGI scripts are stored. Scripts are stored in this directory so that the Web server will know to execute these scripts instead of just displaying them in a browser. This directory has executable permissions, while all of your other directories should remain non-executable.

With your own local CGI bin directory, you can store custom CGI scripts that you have written yourself or found elsewhere on the Web.

 
For customers who remain on the Linux platform, your cgi directory is:

/home/[domainname]/www/cgi-bin  (for example, /home/testcvdomain/www/cgi-bin)

For customers who have changed their hosting platform to Windows, your cgi directory is:

/[domainname.com]/www/cgi-bin  (for example, /testcvdomain.com/www/cgi-bin)


What languages can I use to write my CGI scripts and programs?

CGI scripts can be written in almost any programming language, including C, C++, TCL, Perl, Python, Java and Visual Basic. Hostway's UNIX Plans provide support for CGI scripts written in Perl 5.x, C++, GCC (GNU Compiler Collection), TCL and Python.


Can I install my own CGI scripts and programs?

Yes. You can upload your own CGI scripts to your local /cgi-bin directory.
 
For customers who remain on the Linux platform, your cgi directory is:

/home/[domainname]/www/cgi-bin  (for example, /home/testcvdomain/www/cgi-bin)

For customers who have changed their hosting platform to Windows, your cgi directory is:

/[domainname.com]/www/cgi-bin  (for example, /testcvdomain.com/www/cgi-bin)


What Free CGI scripts are available to me?

Customers on the default (Linux) platform have access to the following scripts:

•   Counter script
•   CGIEmail script
•   FormMail script