What are definite the Core Components of Pear
| From: | Michael Meyer \(flexiCAD\) | Date: | Sat, 31 Aug 2002 20:47:43 +0000 |
| Subject: | What are definite the Core Components of Pear | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-2208@lists.php.net to get a copy of this message | ||
Hi...,
I want to use the Auth package of PEAR.
I have to install the PEAR core components by hand, because I only have FTP
access to my webserver. Or missed I something.
What are the Core Components, which I need for Auth?
I tried the following Auth example:
---------------------------------
<?php
require_once "Auth/Auth.php";
function loginFunction()
{
global $PHP_SELF;
/**
* Change the HTML output so that it fits to your
* application.
*/
echo "<form method=\"post\" action=\"" . $PHP_SELF .
"\">";
echo "<input type=\"text\" name=\"username\">";
echo "<input type=\"password\" name=\"password\">";
echo "<input type=\"submit\">";
echo "</form>";
}
$dsn = "mailto:mysql://user:password@localhost/database";
$a = new Auth("DB", $dsn, "loginFunction");
$a->start();
if ($a->getAuth()) {
/**
* The output of your site goes here.
*/
}
?>
---------------------------------
I get always the same error:
Fatal error: Cannot instantiate non-existent class: auth_container_db in
/home/kunden/flexicad/lib/php/Auth/Auth.php on line 255
Now I have installed
Auth (version 1.0.2)
PEAR (0.9)
DB (1.3)
File (1.0.2)
Please help a PEAR newbie.
Thanks,
Michel