CGI Scripts FAQ

What is a CGI script?
Does EasyHost 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 EasyHost support CGI scripts?

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

UNIX plans include 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 when you first log in.



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. On EasyHost's UNIX platforms, the path to the cgi-bin directory is home/domainname/www/cgi-bin. On Windows 2000 platforms, the path is /masterusername/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. EasyHost'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. On EasyHost's UNIX platforms, the path to the cgi-bin is home/domainname/www/cgi-bin. On Windows 2000 platforms, the path is /masterusername/www/cgi-bin.



What CGI scripts are available to me?

All of EasyHost's UNIX Plans include the following scripts:
•   Counter script
•   GuestBook script
•   WWWBoard script
•   CGIEmail script
•   FormMail script



© 2003 EasyHost Company
All rights reserved.