[H-GEN] CGI Troubles.
Rob Kearey
mammal at optushome.com.au
Mon May 14 21:35:28 EDT 2001
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Please observe the list's charter. ]
[ Worthwhile understanding: http://www.humbug.org.au/netiquette.html ]
Raymond Smith wrote:
> > For the sake of my studies, I have recently setup and Apache Server at
> > home. Viewing Web documents is not a problem at all. It seems to be
> > executing CGI scripts, that is the problem.
> It is best to always use CGI.pm to generate headers for you. If you are
> forced to reinvent the wheel for pedagogical purposes, then I suggest
> looking at the output of the headers command from CGI.pm and use that as
> the basis for your script.
Oh, ghods yes. If you value your sanity, you'll use nothing but the
tools that Perl and CPAN provide.
Having had close encounters recently with The Worst Credit Card
Processing Scripts In The Macrocosmic Universe, I say unto thee: Get it
right first time. Use perl -w, use strict;, and especially look at taint
checking. And don't use backticks of any sort. Just don't. Use the
appropriate Perl module instead.
> Raymond
--
Rob K
http://members.optushome.com.au/mammal
Please abbreviate 'bandwidth' as 'bndwth'
thereby conserving precious bndwth.
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.
More information about the General
mailing list