You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jeremy Cowgar <jc...@cowgar.com> on 2003/04/25 16:25:51 UTC

[mp2] startup.pl --- db connections?

In startup.pl, can I establish database connections, prepare statements, 
etc??? or is their a better way to handle this?

-- 
Jeremy

Re: [mp2] startup.pl --- db connections?

Posted by Perrin Harkins <pe...@elem.com>.
Jeremy Cowgar wrote:
> In startup.pl, can I establish database connections, prepare statements, 
> etc???

No!  All hell will break loose when you try to use those after apache forks.

> or is their a better way to handle this?

See connect_on_init() in the Apache::DBI docs.

- Perrin