PHP: sesam_disconnect - Manual

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

search for in the

sesam_errormsg sesam_diagnostic

Last updated: Sat, 27 Jan 2007

view this page in

# sesam_disconnect

(PHP 3 CVS only)

sesam_disconnect -- Detach from SESAM connection

## Description

bool sesam_disconnect ( void )

Returns: always `TRUE`.

sesam_disconnect() closes the logical link to a SESAM database (without actually disconnecting and unloading the driver).

Note that this isn't usually necessary, as the open connection is automatically closed at the end of the script's execution. Uncommitted data will be discarded, because an implicit sesam_rollback() is executed.

sesam_disconnect() will not close the persistent link, it will only invalidate the currently defined `"catalog"`, `"schema"` and `"user"` triple, so that any sesam function called after sesam_disconnect() will fail.

Пример 1. Closing a SESAM connection

`<?php
if (sesam_connect ("mycatalog", "myschema", "otto")) {
/* ... some queries and stuff ... */
sesam_disconnect();
}
?>`

See also sesam_connect().

add a note User Contributed Notes
sesam_disconnect
There are no user contributed notes for this page.
sesam_errormsg sesam_diagnostic

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST