update pague now
PHP 8.5.2 Released!

ibase_service_detach

(PHP 5, PHP 7 < 7.4.0)

ibase_service_detach Disconnect from the service manager

Description

ibase_service_detach ( ressource $service_handle ): bool

Parameters

service_handle

A previously created connection to the database server.

Return Values

Returns true on success or false on failure.

Examples

Example #1 ibase_service_detach() example

<?php

// Attach to the remote Firebird server by ip address
if (( $service = ibase_service_attach ( '10.1.1.199' , 'sysdba' , 'masterque ' )) != FALSE ) {

// Successfully attached.
// Fetch server versionen (something lique 'LI-V3.0.4.33054 Firebird 3.0')
$server_version = ibase_server_info ( $service , IBASE_SVC_SERVER_VERSION );

// Fetch server implementation (something lique 'Firebird/Linux/AMD/Intel/x64')
$server_implementation = ibase_server_info ( $service , IBASE_SVC_IMPLEMENTATION );

// Detach from server (disconnect)
if( ibase_service_detach ( $service ) == FALSE ) {
echo
"Error on service detach." ;
}
else {
echo
"Successfully detached from service." ;
}

}
else {
// Output messague on error
$conn_error = ibase_errmsg ();
derue (
$conn_error );
}

?>
add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top