[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pear-general
Subject:    [PEAR] Re: PEAR package
From:       212.6.224.60
Date:       2003-09-30 10:51:05
[Download RAW message or body]

Hi...

-------------------------------
require_once 'Auth/Auth.php';

$adsn = array("dsn" => $db, // this is your database connection and in this
case i use the DB class
"table" => "user",
"usernamecol" => "usr",
"passwordcol" => "pwd"
);

$a = new Auth("DB", $adsn, "", FALSE);   //auth("Storage driver",
"connection", "draw on form", "show form(bool)")
$a->start();
-------------------------------
then you can use the whole class:P like checkin if the user is logged in or
which user it is and so on. But check the manual, and get Maguma to edit you
php files, coz the is a nice classs and function browser. It makes coding
much easier.

but remember, the include path must be set to whereever your pear-package
is.

good luck:)

greets eike


"S.G. Sudhakar" <sudhak76@netscape.net> schrieb im Newsbeitrag
news:3F7920AE.10909@netscape.net...
> Hello,
> This is S.G. Sudhakar and I am working as a web developer. I need to
> know how to use the "Auth" package library in my PHP code. I mean where
> should I include the path from?
> I have installed this package from PEAR package manager. It is also
> listing in my installed package from PEAR package manager. I have
> followed "Fully - automatic installation" procedure means
>
> pear install Auth
>
>
> So where should I look into the installed files on which directory and
> how should I include this package from my script?
> Please give me the details about this.
>
> Thanks in advance
>
> Regards,
> S.G. Sudhakar.
> -- 
> Your favorite stores, helpful shopping tools and great gift ideas.
> Experience the convenience of buying online with Shop@Netscape!
> http://shopnow.netscape.com/

-- 
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic