How to close an oracle db connection from php on an apache server? I mean close instantly.
- by Valentin Jacquemin
Usually closing a connection is simply done by oci_clone($connection); or in a worse case when the php script ends the connection pass away.
In my case however, I face a different behavior.
If I access my application which uses PHP 5.2.8, Apache 2.2.11 and oci8 1.2.5, the connection is kept during several minutes.
Actually it seems to: if I launch netstat -b I see that the process httpd.exe remains with the ESTABLISHED status on the database's URL during a while (a few minutes).
Could someone enlighten me on that behavior?
P.S. I do not use persistent connections.