PHP & PostrgreSQL
PHP & PostrgreSQL
От:
"Tomek" <jmmt@go2.pl>
Дата:
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