From: Sergio V. <se...@in...> - 2005-08-18 16:40:27
|
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. |