You are not logged in.
Pages: 1
Does glpi have some function that closes the connection to the database?
something like "mysqli->close;"
Or it closes that connection on its own?
Offline
There is an explicit connection closing done after the page footer is displayed but the PHP extension would handle closing any hanging connections at the end of script execution as they are not persistent connections.
The PHP documentation on the close method explains this process:
https://www.php.net/manual/en/mysqli.close.php
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
After some research I found that there are two methods. The first using "$DB->close();" and the second using "closeDBConnections();". Don't forget to request the "includes.php" in inc
Offline
Pages: 1