PHP & PostrgreSQL

From: "Tomek" <jmmt(at)go2(dot)pl>
To: <pgsql-cygwin(at)postgresql(dot)org>
Subject: PHP & PostrgreSQL
Date: 2002-05-05 19:45:11
Message-ID: 005901c1f46e$bff26bc0$2eef4dd5@f2q2x6
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

I've got Apache+PHP4 running under Win98 and PostgreSQL under Cygwin/Win98
(with postmaster listening on TCP/IP).
Every think is OK when I connect to PostgreSQL from my php script
(using pg_connect() function) except for disconnecting from it. At the end
of any
script that establishes connection with PostgreSQL I use pg_close() function
and see on postmaster output that a "user" has exited but PostgreSQL is
still listening on that port like as it was waiting for a next request. So,
after running few php pages I've got too many open connections and finally
postmaster is reporting an error. Could you tell me why after invoking
pg_close() php.exe doesn't really close it, or why PostgreSQL is still
listening on a port that is no longer used?

Thanks in advance and sorry for my English
Tomek

Browse pgsql-cygwin by date

  From Date Subject
Next Message Liviu Taloi 2002-05-06 09:45:41 The service did not respond to the start..
Previous Message robert sanford 2002-05-05 18:13:50 cygwin server w/ data on *nix machine?