PHP Doku:: Beendet alle ODBC-Verbindungen - function.odbc-close-all.html

Verlauf / Chronik / History: (50) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzDatenbankerweiterungenAbstraktionsebenenODBC (Unified)ODBC Funktionenodbc_close_all

Ein Service von Reinhard Neidl - Webprogrammierung.

ODBC Funktionen

<<odbc_binmode

odbc_close>>

odbc_close_all

(PHP 4, PHP 5)

odbc_close_allBeendet alle ODBC-Verbindungen

Beschreibung

void odbc_close_all ( void )

odbc_close_all() beendet alle bestehenden Verbindungen zu allen Datenbankservern.

Hinweis: Wie odbc_close() scheitert auch dieser Befehl, wenn auf einer Datenbankverbindung noch Transaktionen ausstehen oder aktiv sind. In diesem Fall bleibt die betroffene Verbindung auch nach dem odbc_close_all() bestehen.


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
alvaro at demogracia dot com
19.09.2008 11:08
Apparently, it doesn't really close *all* connections; just those used by the current script.

If you are using persistent connections, every time a script does an odbc_pconnect() and all open connections are in use you'll get a new connection with the same credentials. You won't close them all with odbc_close_all().



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)