I am having a problem getting my CGI script to work ...
Here are the Top 10 reasons why a CGI script might not work:
Your "@" signs are not escaped with a "\", email addresses
in double quotes will not parse correctly without the backslash - example:
"support\@addr.com" is how it should look. Correct Perl syntax is always
helpful.
Your script was uploaded in BINARY mode instead of ASCII mode. The
easiest way to check this is by telnetting to your shell server and
just look at the CGI itself with "less", "more", or "cat". If you see
^M everywhere, then it was uploaded in binary mode.
Your Perl script file does not have a *.cgi or *.pl extension.
Your Perl is just broken. From the UNIX shell prompt, type "perl -wc
filename.cgi" to test it.
CGIs must have permissions of 755 or they will not execute. Click
here to learn how to change permissions.
If you are including a file such as cgi-lib.pl it must have permissions
of 644 to work. Click
here to learn how to change permissions.
CGIs execute from the current directory (where else?); always remember
this when placing paths inside of the scripts.
If you are using your CGI as an SSI (Server Side Include) a la <--#exec
cgi=scriptname.cgi--> make sure the CGI itself is sending a mime
type (like Content-type: text/html). Also, remember that all SSI files
should have an extension of ".shtml".
If your script came from some source other than ADDR.com please contact
the author.
Your script is using paths incorrectly. You should use paths as follows:
/home/username/public_html to refer to your Website or if at all possible,
use ./ for the current directory and ../ for the previous directory.
Click here for the most common
paths.
Please note: support@addr.com cannot help you with your CGIs other
than stating the above. If you are having problems with your Perl script,
contact the author or try issuing the command from a UNIX shell prompt:
perl -c [filename]
to have Perl check your script for errors. Also, you may find www.perl.com
a useful link.