On Fri, 30 Jun 2000, Tomas Zeman wrote:

> but how I create a global variable, which will be
> global for all apache processes together ?

You have to use either shared memory (IPC::ShareLite, IPC::Shareable,
IPC::MM) or an external storage method like flat files, dbm files, or a
relational database.  You may want to look at Apache::Session which is
intended to solve this problem.

> I have a Apache::DBI , DBI and connect_on_init in my
> startup.pl and connection is established OK.
> what should than i use in my script

>From the Apache::DBI docs: "Do NOT change anything in your scripts. The
usage of this module is absolutely transparent !"
 
So...
> ------
> use DBI;
> or 
> Apache::DBI; ?

DBI

> , with
> $dbd = DBI->connect(...)
> or
> $dbd ||= DBI->connect(....)
> or Apache::DBI->connect ??

The first one.

- Perrin

Reply via email to