rlib_add_datasource_postgres connection fails

Sergio Viteri <[email protected]> Thu, 18 Aug 2005 09:39:47 +0200
Newsgroups gmane.text.rlib.user
Message-ID <[email protected]>
Hi all!

I have tested several installations of rlib under php4 and apache (i
have compiled them manually) working fine. But in a recent installation
using ubuntu packages I find that I am not able to connect to postgres
database. I get no errors but the rlib_add_datasource_postgres function
returns an error code (-1). The postgres server is up and running
(tested with other clients). The connection string is the same as
always. This is my code:

$db_user = "fv";
$db_pass = "admin";
$db_host = "localhost";
$db_name = "fv";
$conn_str = "dbname=$db_name host=$db_host port=5432 user=$db_user
password=$db_pass";
if (($errno = rlib_add_datasource_postgres($rlib, "facturavit",
"$conn_str")) != 0) {
	echo "Connection fails. ($errno)";
	exit;
}

I am running Apache/2.0.53 (Ubuntu) PHP/4.3.10-10ubuntu4 and postgresql
7.4.7-2ubuntu2.

Any ideas ? 
thank you.



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf