> 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...

you should be able to use Apache->server->dir_config('foo')
at this point. Doesn't work with per-vhost config variables, unfortunately.
Please do let me know if this works for you.

--
Eric

Reply via email to