There's nothing here about connexions automatically claused at the end of a script. About that, a little note from devzone.zend.com :
"Open connections (and similar resources) are automatically destroyed at the end of script execution. However, you should still close or free all connections, result sets and statement handles as soon as they are no longer required. This will help return resources to PHP and MySQL faster."
mysqli::close
mysqli_close
(PHP 5)
mysqli::close -- mysqli_close — Closes a previously opened database connection
Opis
Object oriented style (method):
bool mysqli::close
( void
)
Procedural style:
Closes a previously opened database connection.
Parametry
- połączenie
-
Tylko styl proceduralny: Identyfikator połączenia zwrócony przez mysqli_connect() lub mysqli_init()
Zwracane wartości
Zwraca TRUE w przypadku powodzenia, FALSE w przypadku błędu.
mysqli::close
win at alinto dot com
21-May-2008 11:52
21-May-2008 11:52
