Where and how I can use mysql_close?

using mysql_close()

phpFreak at Stack Overflow Visit the source

Was this solution helpful to you?

Other answers

Using mysql_close() isn't usually necessary, as non-persistent open links are automatically closed at the end of the script's execution. See also freeing resources. read more at : http://php.net/manual/en/function.mysql-close.php

Haim Evgi

As answered by others and the manual, it's not necessary. But if you wonder the use; you usually only want to do this when there is more to come in the PHP script and you want to ensure that another connection/transaction is to be used then.

BalusC

No. When the PHP requests ends all resources will be freed, including MySQL connection resources.

CodeAddict

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.