Home | Hosting Plans  | Order  | Support  | Contact Us

 

 Online Help
 Tutorials
 Ftp
 Telnet
 Mail Features
 General HTML
 Using FrontPage
 Form Mail
 Database
 CGI Scripts
 Page Counters
 DNS/IP Information
 Graphics
 Image Maps
 HTAccess
 Announcing
 Software

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CGI SCRIPTS & STUFF

  • Scripts must be made executable with chmod 755 filename.
  • Any script must end in .cgi to ensure execution.
  • Scripts that don't respond with Content Type tag as first line, must be named nph-scriptname.cgi . The nph- stands for non-parsed-headers.
  • Perl 5 is located at /usr/bin/perl , perl 4 at /usr/bin/perl4.036 , make sure the first line has this right or else!
  • Perl scripts will REFUSE to run if uploaded in binary from a non-unix computer. Make sure you upload scripts in ASCII mode. only!!!
  • Perl 4 scripts usually will need to have any @ or $ escaped with \ character to be perl 5 compatible. ie print "webmaster\@yourdomain.com" .
  • The directory cgi-bin is reserved for our shared cgi directory. Your cgi script(s) are called from your cgi-bin with a LOCAL ALIAS. This is the only way the server can distinguish between the main cgi-bin and the cgi-bin in your /www/htdocs/domain directory.

    Example Alias

    http://hostingsolutions.com/97/cgi-hostingsolutions/somescript.cgi
    Where cgi-hostingsolutions is the alias for the cgi-bin inside of the hostingsolutions directory.

    If you have a Non-Virtual Account, you will have a cgibin directory without the hyphen. You will just use a straight path to your scripts. Actually the cgi-bin is mapped to our /www/cgi-bin/ so you can use our cgi scripts with your domain.com and not have to make duplicate copies of the files.
  • index.cgi is valid, as an executable cgi home page for a cgi script. Likewise you could replace index.htm with index.shtml to use PARSE(Server Side includes).
  • only work in files with .shtml extension. The execute bit and read public bits must be on to use .shtml.
  • is a cool way to output the result of a simple cgi script into the middle of somefile.shtml .
  • .shtml files need to have their permission changed to 755 -- chmod 755 filename.cgi
  • Cool server variables
  • If you can't figure out why it doesn't work, run it from the command Line, or rename it to nph-scriptname. You'll see more error messages.
  • CGI is programming, don't be mistaken into thinking it is as easy as HTML. It isn't. We have a great staff of programming consultants well-versed in CGI and can gladly handle your programming needs on a consulting basis at a very reasonable rate. Contact us!
  • If you are going to use perl, buy a Perl book, please. You will need the information for reference.
  • If you can't figure it out, don't go crazy. We can techsupport you get your scripts installed at a very reasonable hourly rate, just email us for information and an estimate.
  • There are many documented examples in /www/htdocs/cgi-scripts If you are unable to do your own cgi scripting and setup, please contact us, one of our expert programmers can techsupport! Save time and FRUSTRATION! We have a vast library of free scripts for many different applications and can install them for you at a very reasonable cost.

    Other Sources For Learning CGI and PERL Are:

  • The Common Gateway Interface
    An introduction (with examples) to CGI scripting. One of the best sites.

  • The Web Developers Library

    Access To:

  • ImageMap

  • CGIWrap

    More Sources Of Information & Script Archives

  • CGI Library

  • CGI Tutor

  • http://worldwidemart.com/scripts/

  • CGI Applications

  • The Perl Language Home Page

  • Dale Bewley's Perl Scripts and Links

  • Kira's CGI Cookbook

  •  

     

     

    1998-2006 Hosting Solutions, Inc. E-mail us at: techsupport@hostingsolutions.com with your questions and comments about our services. We appreciate your feedback on our site. "Hosting Solutions, Inc" in partnership with Internet Services.