Re: MDB: Unified DSN Constant
| From: | Davey | Date: | Sun, 27 Apr 2003 14:55:11 +0000 |
| Subject: | Re: MDB: Unified DSN Constant | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-15598@lists.php.net to get a copy of this message | ||
Lukas Smith wrote:
Why not define your MY_DEFAULT_DSN constant which you then pass to every package that needs a dsn? What might be more feasible is a suggestion that came recently about making all packages that use M?DB to allow passing of an existing object instance. Regards, Lukasbecause how does some other package the user wants to use know that I'm using MY_DEFAULT_DSN? Its not other packages my package uses, but others used by the user within the same script. - Davey