Web DBI - Tips for the novice
l
Test one step at a time
–
Test perl + DBI + DBD driver outside the web server first
–
Test web server + non-DBI CGI next
l
Remember that CGI scripts run as a different user with a different
environment - expect to be tripped up by that
l
DBI trace is your friend - use it
l
Use the Perl "-w" and "-T" options. Always "use strict;"
l
Read and inwardly digest the WWW Security FAQ:
n
http://www-genome.wi.mit.edu/WWW/faqs/www-security-faq.html
l
Read the Perl CGI FAQ:
n
http://www.perl.com/cgi-bin/pace/pub/doc/FAQs/cgi/perl-cgi-faq.html
l
And, if appropriate, read the mod_perl information available from:
n
http://perl.apache.org
48