Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

are database connections closed after exit/die?

Status
Not open for further replies.

lijil

Programmer
Jun 9, 2004
16
CA
I know that database connections opened via odbc_connect, etc. are automatically closed when the script ends, but does this include scripts which are terminated via exit or die?
 
I am 95% certain the connections are closed when a script exits via exit() or die().

Are you having a problem that indicates otherwise?


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
No I am not experiencing any problems, I am just unsure of the behaviour. My guess also is that they ARE closed, I will post any info I find.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top