hi all,
what i'd like to do is "pre-initialize" my DBI connections from whithin
my PerlHandler's BEGIN block.
something like this:
BEGIN {
if ( Apache->dir_config('CONNECT_ON_INIT') {
Apache::DBI->connect_on_init(Apache->dir_config('DBI_INFO');
}
}
but of course the Apache* stuff isn't available at this stage...
does anyone have a clever solution to this? i've resorted to `grep`ing
httpd.conf for the DBI_INFO string, but that is sooo ugly.
thanks.
--
------------------------------------------------------------------------
Svante Sörmark | Chalmers University IT systems & services | 031-7728665
------------------------------------------------------------------------