PHP: sesam_connect - Manual

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

search for in the

sesam_diagnostic sesam_commit

Last updated: Sat, 27 Jan 2007

view this page in

# sesam_connect

(PHP 3 CVS only)

sesam_connect -- Open SESAM database connection

## Description

bool sesam_connect ( string catalog, string schema, string user )

Returns `TRUE` if a connection to the SESAM database was made, or `FALSE` on error.

sesam_connect() establishes a connection to an SESAM database handler task. The connection is always "persistent" in the sense that only the very first invocation will actually load the driver from the configured SESAM OML PLAM library. Subsequent calls will reuse the driver and will immediately use the given catalog, schema, and user.

When creating a database, the `"catalog"` name is specified in the SESAM configuration directive //ADD-SQL-DATABASE-CATALOG-LIST ENTRY-1 = *CATALOG(CATALOG-NAME = catalogname,...)

The `"schema"` references the desired database schema (see SESAM handbook).

The `"user"` argument references one of the users which are allowed to access this `"catalog"` / `"schema"` combination. Note that `"user"` is completely independent from both the system's user id's and from HTTP user/password protection. It appears in the SESAM configuration only.

See also sesam_disconnect().

Пример 1. Connect to a SESAM database

`<?php if (!sesam_connect ("mycatalog", "myschema", "otto")) { die("Unable to connect to SESAM"); } ?>`

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

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