I have a script which opens a connection with pg_connect(), and then forks some children. Unfortunately, when the first child exits, the database connection gets closed. The parent then gets a "server closed connection unexpectedly" warning on the next database query.
Is there some way to hide this connection from the child so it doesn't close it on exit?
I am using PHP 4.3.10 on Linux
pg_connect() and forking
1 reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users