Re: [PHP-DB] postgresql connection management

2008-02-28 Thread jim white
Chris wrote: jim white wrote: I am running several web sites on one server, each of which connects to a different Postgresql database. I use some include files to load functions and classes. If I put pg_connect at the start of the include file, then sometimes I do not connect to the correct da

Re: [PHP-DB] postgresql connection management

2008-02-28 Thread Chris
jim white wrote: I am running several web sites on one server, each of which connects to a different Postgresql database. I use some include files to load functions and classes. If I put pg_connect at the start of the include file, then sometimes I do not connect to the correct database from f

[PHP-DB] postgresql connection management

2008-02-28 Thread jim white
I am running several web sites on one server, each of which connects to a different Postgresql database. I use some include files to load functions and classes. If I put pg_connect at the start of the include file, then sometimes I do not connect to the correct database from functions in a clas

[PHP-DB] PostgreSQL connection

2003-08-14 Thread Joe Nilson Zegarra Galvez
Hi all, i have a question, i have a php file with all my class to connect into a postgresql db and i'm using the pg_connect in this form: pg_connect("192.168.1.100","","","",$dbase); but when i have 8 or 10 users inserting data the db response is very slow, is problem in the pg_connect?, all ppl

[PHP-DB] Postgresql Connection

2002-06-02 Thread smith
I was using PostgreSQL 7.1.3 before, and I have upgraded PostgreSQL to 7.2.1 in these days. But after I upgraded the PostgreSQL server, I cannot connect it by the PHP scripts. It shows nothing , not even error message telling me what' going wrong? Could anyone tell me how to solve this problem

[PHP-DB] PostgreSQL connection problem #2

2001-11-18 Thread Laukó Péter
Hi, I could solve part of the problem by creating a user and database called 'www-data'. The new question is how can I connect to an arbitrary database? (This seems to be a configuration problem for me.) Since I have more sites on the same server, I really need more db-s. My previous letter was:

[PHP-DB] PostgreSQL connection problem

2001-11-16 Thread Laukó Péter
Hi, I try to connect to a PostgreSQL database from my php script, and I get the following error: Warning: Unable to connect to PostgreSQL server: FATAL 1: Database "www-data" does not exist in the system catalog. in /home/lao/proj/hajnalcsillag/www/classes/DBConnection.php on line 10 The code i