CGI (common gateway interface) is a useful tool that allows you to create some really useful scripts to help make you web site more interactive. |
Every hosting account we do comes with a cgi-bin where you can put any scripts that you want to use on your web site. You can up-load them using any FTP program, for example Cute FTP, but make sure you set it to transfer them in ASCII mode and not binary or they won't work!
Remember to make all of your CGI scripts executable. This can be done in an FTP program, or by typing: chmod 755 myscript.cgi in the relevent directory in telnet.
Every domain you add to you account comes with a link to your cgi-bin, for example:
This links to your cgi-bin so that you can run scripts from any of your domains on your account.
Below are some useful details that you may need to know about when using CGI or Perl:
Perl - /usr/bin/perlTo find your true location of your home directory login to your control panel and go to account details and then to account details where it is shown at the top of the page.
Sendmail - /usr/sbin/sendmail
CGI-BIN - /home/username/dirid/cgi-bin/
If you would like more information on where you can get script and how to create them take a look at www.cgi-resources.com. Where you will find a whole wealth of information that may be of help.