Using Pear Auth

From: Date: Wed, 29 Jan 2003 23:32:27 +0000
Subject: Using Pear Auth
Groups: php.general 
Request: Send a blank email to php-general+get-133570@lists.php.net to get a copy of this message
I'm trying to use Pear on a server that had an old version of Pear, so I put the pear directory in the directory where I'm working, and am including ini_set('include_path', 'path to pear'); at the top of my file. I then have require_once('PEAR.php'); require_once('PEAR/Command/Auth.php'); I had to put in the PEAR part for Auth, without it I was getting a: Fatal error: Failed opening required 'Auth.php' (... and in my code, which is the example code from the Pear site (http://pear.php.net/manual/en/packages.auth.auth.php) for Auth there's the line $a = new Auth("DB", $dsn, "loginFunction"); which is causing this: Fatal error: Cannot instantiate non-existent class: auth in /opt/docs/www.xxx.net/passthru.php on line 21 Anyone know what I'm doing wrong? Is there a better example of functional Auth code out there? Josh

« previous php.general (#133570) next »