DB_common::disconnect()

DB_common::disconnect() – Termine la connexion à la base de données

Synopsis

boolean disconnect ( )

Description

Termine la connexion à la base de données.

Return value

boolean - Returns TRUE on success, FALSE on failure.

Note

This function can not be called statically.

Example

Exemple avec disconnect()

<?php
require_once 'DB.php';

$db =& DB::connect('pgsql://someuser:apasswd@localhost/thedb');
if (
PEAR::isError($db)) {
    die(
$db->getMessage());
}

$db->disconnect();
?>
Crée une nouvelle séquence (Previous) Supprime une séquence (Next)
Last updated: Sun, 29 Aug 2010 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.