PHP
downloads | documentation | faq | getting help | mailing lists | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

mysqli_commit> <mysqli_character_set_name
Last updated: Fri, 14 Nov 2008

view this page in

mysqli_close

mysqli->close

(PHP 5)

mysqli_close -- mysqli->closeFecha uma conexão aberta anteriormente com o banco de dados

Descrição

Estilo de procedimento:

bool mysqli_close ( object $link )

Estilo orientado a objeto (metodo):

mysqli
bool close ( void )

A função mysqli_close() fecha uma conexão com um banco de dados aberto anteriormente especificado pelo parâmetro link .

Valores de retorno

Retorna TRUE em caso de sucesso ou FALSE em falhas.



add a note add a note User Contributed Notes
mysqli_close
php at dafydd dot com
07-Nov-2008 01:03
I've had situations where database connections appeared to persist following php execution. So, now, my __destructor function explicitly contains a $cxn->close(). It hurts nothing, and helps avoid memory leaks.
win at alinto dot com
21-May-2008 02:52
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_commit> <mysqli_character_set_name
Last updated: Fri, 14 Nov 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites