NYCPHP Meetup

NYPHP.org

[nycphp-talk] Pear Auth options array

Matthew Terenzio webmaster at localnotion.com
Tue Aug 3 14:23:58 EDT 2004


I thought so,. I'm just super frugal when it comes to requires and 
includes, so I just wanted to check.
On Aug 2, 2004, at 10:34 PM, David Mintz wrote:

> On Mon, 2 Aug 2004, Matthew Terenzio wrote:
>
>> In practice are most users wrapping this into a class of its own and
>> including that all pages.
>>
>> I mean to say that you wouldn't want to edit all db backed pages if 
>> the
>> db host changed right? I can handle abstracting it out. Just wanted to
>> verify that's the case here.
>
> What I have done is require an 'auth.php' on each page that, well,
> requires it. auth.php in turn loads Auth.php and instantiates an Auth,
> passing among other things 'dsn'=>DSN in the $options array, where DSN 
> is
> a constant defined elsewhere. Worksforme. For even less work, you might
> consider doing this by setting a auto_prepend_file directive in an
> .htaccess file in the directory in question.
>
> HTH
>
>
> ---
> David Mintz
> http://davidmintz.org/
>
>         "Anybody else got a problem with Webistics?" -- Sopranos 24:17
> _______________________________________________
> New York PHP Talk
> Supporting AMP Technology (Apache/MySQL/PHP)
> http://lists.nyphp.org/mailman/listinfo/talk
> http://www.newyorkphp.org




More information about the talk mailing list