Hi, > (1) what's the best place to store DB username/password? > right now I have it hardcoded into the perl code and this is > both unmaintainable and a security hazard I think. I was > thinking maybe each html file should start off with [- > require 'global.pl' -] or something like that to get > information that all the scripts use collectively. Maybe > there's a better way?
Basicly that's a good idea. If you using Embperl 2.0 (what I am recommend) than you can use the application object feature of Embperl. This will do the "require global.pl" and a call do a init method for you. See perldoc Config.pod and perldoc Embperl::Object. > (2) what's the preferred way to do persistent database > connections? there seem to be many modules for that. > I use Apache::DBI > Thanks for your help. I love Embperl, by the way, it is so > much better than plain old cgi scripts :-) > :-) Gerald --------------------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh IT-Securitylösungen * Webapplikationen mit Apache/Perl/mod_perl/Embperl Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: [EMAIL PROTECTED] Voice: +49 6133 939-122 WWW: http://www.ecos.de/ Fax: +49 6133 939-333 --------------------------------------------------------------------------- ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info --------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]