PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
MDB2_Driver_psql' file 'MDB2/Driver/psql.php

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Authentication
View previous topic :: View next topic  
Author Message
marxav



Joined: 03 May 2007
Posts: 8

PostPosted: Wed May 09, 2007 7:24 am    Post subject: MDB2_Driver_psql' file 'MDB2/Driver/psql.php Reply with quote

I get error message, although I know the driver is installed. I can use MDB2 with other packages such as QuickForm.

When I do print_r($a), I get a lenghty output such as

[db] => MDB2_Error Object
(
[error_message_prefix] =>
[mode] => 1
[level] => 1024
[code] => -4
[message] => MDB2 Error: not found
[userinfo] => unable to find package 'MDB2_Driver_psql' file 'MDB2/Driver/psql.php'
[backtrace] => Array
...
I am trying to use auth with the exemple provided on the documentation page, and I changed the following :

$options = array(
'dsn' => "psql://myuname:mypass@localhost/astj_dev_1",
'table'=>'users'
);
$a = new Auth("MDB2", $options, "loginFunction", $optional);
$a->start();
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1003

PostPosted: Wed May 09, 2007 1:20 pm    Post subject: Reply with quote

Is your PEAR directory in your include_path setting? Did you use the PEAR installer?
Back to top
View user's profile Send private message
marxav



Joined: 03 May 2007
Posts: 8

PostPosted: Wed May 09, 2007 6:10 pm    Post subject: Reply with quote

Yes, PEAR is in my include path of my php.ini.

One thing that puzzle me a bit is that the driver is called MDB2_Driver_pgsql and the file in question pgsql.php, not psql.php...
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1003

PostPosted: Wed May 09, 2007 6:14 pm    Post subject: Reply with quote

Then it's just a typo in your DSN: "psql://". Just fix it, and the right file will be found.
Back to top
View user's profile Send private message
marxav



Joined: 03 May 2007
Posts: 8

PostPosted: Wed May 09, 2007 6:23 pm    Post subject: Reply with quote

Grr. I should have seen it. Thanks Mark.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Authentication All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software