Why am I getting
CGI errorsin my script?
CGI errors can occur for any number of reasons. Here are five of the most common.
- The line
#!/usr/local/bin/perlmust appear as the first line in the script.
- The script has not been made executable. Issue this FTP command...
chmod 755 filename
FTP clientsrequire that the CHMOD commandbe preceded by the SITE commandand/or the QUOTE command. See "What is FTP and how do I use it?" for more information about FTP.
- Your script may have
carriage returnsin it (^M or ASCII 13). They need to be stripped or replaced by linefeeds(^J or ASCII 10). Try uploading the file in text mode, rather than in binary mode.
- The filename must end in .cgi, .pl or .sh.
Content-type statementmust be present in scripts that print to standard out.
A service of zNET Internet Services