-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hey Alex,
well, ok, DSN 8-) ... I tested the following script:
****************SNIP****************
- --TEST--
DB_pgsql::connect test
- --FILE--
<?php require "connect.inc";
if (is_object($dbh)) {
print "\$dbh is an object\n";
}
if (is_resource($dbh->connection)) {
print "\$dbh is connected\n";
}
?>
- --EXPECT--
$dbh is an object
$dbh is connected
****************SNIP****************
connect.inc says:
****************SNIP****************
<?php
$conn = pg_pconnect("user=mail dbname=mail");
if (!$conn) {
echo "An error occured.\n";
exit;
}
?>
****************SNIP****************
So, as this doesn't show an error, I suppose it works, doesn't it?
Eh, I run it like this: "php testdb.php"
- ---
Best regards,
Chris
Wednesday, July 9, 2003, 4:38:56 PM, you wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hi,
>>
>> I'm trying to setup squirrelmail use PostgreSQL for addressbook and
>> preferences but have no success with it ...
>>
>> Even so I created a database, added the tables as instructed in the
>> docs and checked that PEAR DB has access to postgreSQL, I keep getting
>> this one:
>>
>> "Preference database error (extension not found). Exiting abnormally"
>>
>>
>> The DNS string configured is definitely correct.
AL> DSN :)
AL> A first guess is you don't have the pgsql support for php4 installed. In
AL> Debian it's called php4-pgsql. Also make sure you used pgsql as extension
AL> name in you DSN. How did you check "that PEAR DB has access to
AL> postgreSQL"?
AL> HTH,
AL> Alex.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
iD8DBQE/DMIkwxLCEacfbwIRAp9dAKDFsfx/nPh9/XcpcogoPQbqlVDIKACgpi2h
w35a8w67svO8xHoIsb1LsD8=
=UgFH
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users