<?xml version="1.0" encoding="windows-1252"?>
<node id="92405" title="Is there a way disconnect from database" created="2001-06-28 18:24:44" updated="2005-08-15 08:29:15">
<type id="1857">
categorized question</type>
<author id="11732">
QandAEditors</author>
<data>
<field name="doctext">
I am stuck with a very typical problem.... and need help badly.....

The thing is i am using DBI to connect to a database
and at the end of the script i disconnect form the database by
&lt;code&gt;
$db_handle-&gt;disconect();
&lt;/code&gt;

but this disconnect happens at the end of script.. Now if something happens and my script is killed before it reaches the end of the script... how to i disconnect form the database. Like i do a CTRL + c on the script that kills the execution but doesnot disconnect from database.... so is there a way for me to disconnect from database when this happens.&lt;br&gt;

thanks&lt;br&gt;

- turum.</field>
<field name="parent_node">
1831</field>
</data>
</node>
