|
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" . To find the path to root click on domains in the quick access menu and the path is listed under "HTML Directory Name".
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 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.
If
you are going to use perl, buy a Perl book, please. You will
need the information for reference.
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/
The Perl Language
Home Page
|