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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php