View Single Post
Old Feb 22nd, 2005, 7:25 PM   #2
Mad_guy
Hobbyist Programmer
 
Mad_guy's Avatar
 
Join Date: Oct 2004
Location: Sandstorm, Techno Club
Posts: 239
Rep Power: 4 Mad_guy is on a distinguished road
Send a message via AIM to Mad_guy Send a message via MSN to Mad_guy
Well, once you upload your .cgi script to your webhost, you have to do two things:

A. Modify the files permissions to 0755, preferably using an FTP program.
B. At the very top of the script, before anything else (excluding the shebang), you have to put this line:

print "Content-type: text/html\n\n";

Then it should work perfectly, also make sure that the shebang is pointing at the Perl interpreter on your server's system. Common mistake to accidently make it point tword your own. I do it sometimes.
Mad_guy is offline   Reply With Quote