Firebird 2.0
PHP5 Programming
Manual

FBIRD_SERVICE_DETACH

Purpose

Use the fbird_service_detach function to detach from a service manager and free the service connection resources

Syntax

<service_detach> ::=
   fbird_service_detach( svc_hndl )


Element 
Type
Description
svc_hndl
resource
A valid service handle
<return>
bool
True on success, False on failure

Semantics

The fbird_service_detach function detaches from the services manager connection specified by the service handle.

On success this function returns True. On failure, it returns False.

Example

The below example connects to the service manager of the Firebird server on the local machine and sends the server version to the browser.

if (($svc = fbird_service_attach('localhost',
            'sysdba', 'masterkey')) != FALSE) {
   echo fbird_server_info($svc, IBASE_SVC_SERVER_VERSION)
   fbird_service_detach($service);
}
else {
   $ib_error = fbird_errmsg();
}



See also

fbird_service_attach


previous page goto index next page

Legal information