Web DBI - Tips for the novice
Test one step at a time
- Test perl + DBI + DBD driver outside the web server first
- Test web server + non-DBI CGI next
Remember that CGI scripts run as a different user with a different environment
- expect to be tripped up by that
DBI $h->trace($level, $filename) is your friend
Use the perl "-w" and "-T" options.
- Always "use strict;" everywhere
Read and inwardly digest the WWW Security FAQ:
Read the CGI related Perl FAQs:
And if using Apache, read the mod_perl information available from: