 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
marxav
Joined: 03 May 2007 Posts: 8
|
Posted: Wed May 09, 2007 7:24 am Post subject: MDB2_Driver_psql' file 'MDB2/Driver/psql.php |
|
|
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 |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1053
|
Posted: Wed May 09, 2007 1:20 pm Post subject: |
|
|
| Is your PEAR directory in your include_path setting? Did you use the PEAR installer? |
|
| Back to top |
|
 |
marxav
Joined: 03 May 2007 Posts: 8
|
Posted: Wed May 09, 2007 6:10 pm Post subject: |
|
|
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 |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1053
|
Posted: Wed May 09, 2007 6:14 pm Post subject: |
|
|
| Then it's just a typo in your DSN: "psql://". Just fix it, and the right file will be found. |
|
| Back to top |
|
 |
marxav
Joined: 03 May 2007 Posts: 8
|
Posted: Wed May 09, 2007 6:23 pm Post subject: |
|
|
| Grr. I should have seen it. Thanks Mark. |
|
| Back to top |
|
 |
|
|
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
|
|