addUser does not work
| From: | Michael Neubauer | Date: | Thu, 03 Apr 2003 16:05:25 +0000 |
| Subject: | addUser does not work | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-4630@lists.php.net to get a copy of this message | ||
As a newbie to pear:
I try to add an user to an auth DB. I use Auth 1.2. But nothing happens.
UserAdd does not return. The program look like this:
<?php
//CREATE TABLE Auth (
// username varchar(50) NOT NULL default '',
// password varchar(32) NOT NULL default '',
// PRIMARY KEY (username),
// KEY password (password)
//) TYPE=MyISAM COMMENT='Benutzerverwaltung';
require_once 'Auth_HTTP/Auth_HTTP.php';
$yetcal_user= 'mine';
$yetcal_host='localhost';
$yetcal_pass='GarOll';
$yetcal_db='yetcal';
$yetcal_dsn="mysql://$yetcal_user:$yetcal_pass@$yetcal_host/$yetcal_db";
if (!$yetcal_auth=new Auth_HTTP("DB", $yetcal_dsn)) {
echo DB-connect;
die ("No connection");
}
else echo OK;
echo goon;
if ($yetcal_auth->addUser("mine","")) {
echo 'bin drin';
}
else {
echo 'bin draussen';
}
echo test;
?>
--
Michael Neubauer