Re: rlib_add_datasource_postgres connection fails

Bob Doan <[email protected]> Thu, 18 Aug 2005 13:01:00 -0400
Newsgroups gmane.text.rlib.user
Message-ID <[email protected]>
Are you 

dl("rlib.so") or dl("librlib.so")??

On Thu, 2005-08-18 at 09:39 +0200, Sergio Viteri wrote:
> 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
> _______________________________________________
> Rlib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/rlib-users



-------------------------------------------------------
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