CGI Questions

  1. What CGI scripts provided with the server?
    You can check our current CGI list here


    We currently have a Mailform script which will send you the contents of any form to you in email. We also have a counter script which will display a count of how many visitors come to your site and many more.

  2. What is the function of the "cgi-bin" directory?

    This directory allows you to execute a CGI script written in Perl. Perl programs are self-compiling and can be utilized immediately after transfer to this directory.

  3. How do I access my cgi-bin

    Your Web Hosting cgi-bin can be accessed with the URL: http://www.yourdomain.com/cgi-bin/scriptname

  4. Where is Pearl and Sendmail?

    Pearl is at: /usr/local/bin/perl5
    Sendmail is at: /usr/lib/sendmail
    As a general rule, the first line in all PERL CGI scripts must be: #!/usr/local/bin/perl5

  5. How do I implement custom CGI scripts?

    You can write or download your own CGI scripts and install them in your cgi-bin. Upload your scripts using your FTP software (if they are not pre-compiled binaries) to your cgi-bin directory as text. After uploading your CGI script you must change the file permissions to 755 to make them executable.
    To access your cgi-bin, use the action: <FORM ACTION = "/cgi-bin/script"...

    A very common problem with running CGIs results when CGI files are uploaded to the server using binary or some other format. The correct format for CGI files is ASCII (or text) format. Double check to make sure that your FTP Client has ASCII or text selected.

    Make sure that you are using a text editor that is able to save a Unix formatted text file. For Macintosh, aNet recommends BBEdit Light http://www.barebones.com. and NotePad For Windows.


  6. How do I create an imagemap?

    First you need to create a map file for the image.

    There are also tools available to make your imagemap creation easier. For MS-Windows or UNIX XWindows, and Macintosh use the MapEdit program found at http://www.boutell.com/mapedit

    For example, if your GIF image is called "myroom.gif," and the map file is called "room.map," then you will use something like the following: href="room.map"> src="myroom.gif" ISMAP> &lt/a>
    Note: that you first use an anchor tag to call the imagemap script, passing the path to your map file. Next, include your image by adding the ISMAP modifier. This lets the server know that it is a clickable image.

    You may also want to look into client-side imagemaps. New versions of Netscape Navigator and MS Explorer use client-side maps. Most Web design programs such as Dreamweaver and Golive also use client-side imagemaps. The details can be found at: http://home.netscape.com/assist/net_sites/html_extensions_3.html

    Other Resources:


    Matt's Scripts Archive
    http://www.worldwidemart.com/scripts/