Additional Info
Type
Package ID
CmptrWz:newconn
First Created
March 17, 2008, 07:46:59 PM
Last Updated
March 17, 2008, 07:46:59 PM

Force New Connection v1.0

Add the ability to force a new connection to the database
Compatible With 2.0 Beta 3 Public
Latest version v1.0
Downloads 30,174
Reviews 0
Rating 0/5
Subscribers 3
License (View License)
Author(s)
Add the ability to force a new connection to the database when using MySQL or Postgresql.

When you have SMF and another application in the same database and are integrating them, such as with SSI.php, the database handle is re-used by default. This mod allows you to specify a variable, either before SSI.php is called or in Settings.php, that will force a new, separate connection for SMF's use.

Just add

$db_fnewconn = true;

Either in Settings.php or before including SSI.php.

(may need to be made a global, depending on your integration method)

Tested with MySQL, should work with Postgresql.
NEWCONN.tar.gz
1.57 KB
Manual installation info
You have to register or login to be able to leave a review
There are currently no reviews on this customization
Advertisement: