you can change the connection file to use mysql connect instead of pconnect.
In the connection file, the last line establishes the connection:
For example the powerstore connection looks like:
$PowerStoreConnection = mysql_pconnect($hostname_PowerStoreConnection, $username_PowerStoreConnection, $password_PowerStoreConnection) or trigger_error(mysql_error(),E_USER_ERROR);
you can chage this to:
$PowerStoreConnection = mysql_connect($hostname_PowerStoreConnection, $username_PowerStoreConnection, $password_PowerStoreConnection) or trigger_error(mysql_error(),E_USER_ERROR);
to use the mysql connect method.
Closing the connection happens when you free the recordset results.
For each recordset you have on a page, you should have a mysql_free_result line at the end of the page:
mysql_free_result($recordsetName);