- Upload Cgi stuff in
Ascii Mode. Unless it's an .exe .jpg or .gif file, upload in ascii or text
mode. This includes .cgi .pl .txt .log .htaccess .htpasswd .htgroup and the
like. I still make the mistake sometimes of uploading in binary and scratch my
head for 5 minutes wondering what went wrong.
- Set the right
permissions. Files that get run like .cgi need to be set to 755 or
rwxr-xr-x and files that get written to must be 666 or rw-rw-rw-. These can be
set using most ftp programs like CuteFTP and WsFTP by right clicking and
selecting 'chmod'. This is the second biggest mistake that gets made.
- #!/usr/bin/perl
Should be the first line of your perl cgi scripts indicating what program to
use to interpret the code. For mailing scripts, try /usr/lib/sendmail. Also, if
you are outputting back to the screen, your first line should be:
print "Content-type:
text/html\n\n"; This is the third biggest
mistake that gets made.
- Use Javascript to
manipulate the Fields on the HTML Forms that get sent to the Cgi scripts that
are written in Perl. Did you get all that? I'm sure that statement didn't
help at all. It was really just my chance to get even for the doublespeak
bestowed upon me! Oh yeah, use Java to stay up while you're programming
everything else.
- Learn how to
Yahoo. Type in the keywords you want with pluses in front of them like:
+html +form +mailto +tutorial which forces all of the keywords to be present.
If you need more info, click on AltaVista or HotBot or InfoSeek at the bottom
of the page.
- Get a good reference
book. Barnes & Noble are the ones I turn to if I can't find it on the
web! The Waite Group Press Interactive Course series, especially Perl 5 and
Javascript, are excellent and even allow you to earn certificates and email
questions.
- Keep some tricks up
your sleeve. In this 'Information Age', TIME=KNOWLEDGE=MONEY. You must be
willing to trade one for another and remember that there is a price for
everything. Except Love. Love is free - except in Vegas where it will cost you
95% of whatever you have in your wallet!
|