Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Un-needed mysqli_close() in functions
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Support

2020-07-01 17:04:56
I dont think this is necessary to be here, correct me if im wrong. In backend/functions.php, find
function stdfoot() {
   global $site_config, $CURUSER, $THEME, $LANGUAGE;
   require_once("themes/" . $THEME . "/footer.php");
   mysqli_close($GLOBALS["DBconnector"]);
}

remove
mysqli_close($GLOBALS["DBconnector"]);

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2020-07-01 19:31:41
"MicroMonkey, post: 68760, member: 311":

I dont think this is necessary to be here, correct me if im wrong. In backend/functions.php, find
function stdfoot() {
   global $site_config, $CURUSER, $THEME, $LANGUAGE;
   require_once("themes/" . $THEME . "/footer.php");
   mysqli_close($GLOBALS["DBconnector"]);
}

remove
mysqli_close($GLOBALS["DBconnector"]);


what if i change to ???

mysqli_affected_rows($GLOBALS["DBconnector"]);

2020-07-02 14:19:44
I dont think its necessary at all.
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2020-07-02 19:59:37
"MicroMonkey, post: 68762, member: 311":

I dont think its necessary at all.

ok  thanks you! (y)
2020-07-03 00:22:08
Remove it, it’s a executation endpoint of an isolated script action. Completely irrelevant for PDO, not sure about mysqli
2020-07-03 10:28:08
All connections close when script ends on both  (y)
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728