略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: ibase_service_detach

2024-11-14

ibase_service_detach

(PHP 5, PHP 7 < 7.4.0)

ibase_service_detachDisconnect from the service manager

说明

ibase_service_detach(resource $service_handle): bool

参数

service_handle

A previously created connection to the database server.

返回值

成功时返回 true, 或者在失败时返回 false

范例

示例 #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''masterkey')) != FALSE) {
        
        
// Successfully attached. 
        // Fetch server version (something like 'LI-V3.0.4.33054 Firebird 3.0')
        
$server_version  ibase_server_info($serviceIBASE_SVC_SERVER_VERSION);

        
// Fetch server implementation (something like 'Firebird/Linux/AMD/Intel/x64')
        
$server_implementation ibase_server_info($serviceIBASE_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 message on error
        
$conn_error ibase_errmsg();
        die(
$conn_error);
    }

?>
add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.ibase-service-detach.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3