Re: Re: Pear Auth, a couple of questions
| From: | (PHPDiscuss - PHP Newsgroups and mailing lists) | Date: | Sun, 16 May 2004 18:58:02 +0000 |
| Subject: | Re: Re: Pear Auth, a couple of questions | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12528@lists.php.net to get a copy of this message | ||
Inge jørgensen wrote:
> Andre gemünd wrote:
> > Justin Hendrickson wrote:
> >
> >> which create new connections. You would have to modify the container
> >> code to reuse the database connection, either by use of the Singleton
> >> functions or hacking the DB/MDB objects to take your database connection.
> >
> >
> > You don't have to, just pass a reference to the existing DB-Connection
> > in the options-array. Im using it this way too.
> Is this a general rule for all or most PEAR packages?
oh, I'm sorry! I didn't know there were more replies. The one came
directly to me, and so I assumed the rest would also. I am new to the
setup ot mailing lists.
Anyway, I figured everything out. I did just set the dsn option to the $db
object created. It does work fine. :) thanks
The other problem I posted about, that pear was trying to write a file
into a directory it was not allowed to, was easy to fix in the
configuration page in the web installer. It was all set to files in other
directories that the web installer did not have permission to access. So I
just set all the paths which should be pointing to my files, to those
files, and then it worked fine. Thanks for the help!