View Full Version : Closing of database connection
jigaruu
5th October 2004, 10:36 AM
Hi all,
i am using the mysql database and what i need is to close the database connection on every page or whereever becessary so the load to the server reduces can any 1 give me the hint how i can do so,
i think this is a necessary issue to be discussed.
jigaruu.....
mark
11th October 2004, 01:38 PM
Hello,
it is not necessary to close mysql connections, because PostAffiliate Pro uses non-persistent connections, and those are automatically closed by PHP garbage collector.
Do you have any problems with server load when using PostAffiliate Pro, or you are asking only generally?
It is possible to close the connections manually by adding:
$GLOBALS['db']->Disconnect();
to the very end of every index.php script, and scripts like t.php, t2.php, sale.php.
But I don't think it will have any effect on db load.
with regards,
Mark
jigaruu
12th October 2004, 07:40 AM
Hi Mark,
I donno but someone already replied me on the same day for this post by mail, and mark, thanks for your kind help its working properly, now,
jigaruu....
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.