Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: db2_close - Manual
[go: Go Back, main page]

PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<db2_client_infodb2_column_privileges" width="11" height="7"/>
view the version of this page
Last updated: Sun, 07 May 2006

db2_close

(PECL)

db2_close --  データベース接続を閉じる

説明

bool db2_close ( resource connection )

この関数は、db2_connect() で作成した DB2 クライアント接続を閉じ、データベースサーバへのリソースを返します。

db2_pconnect() で作成した持続的 DB2 クライアント接続を閉じようとするとその要求は無視され、 次にコールされるときまで持続的 DB2 クライアント接続はそのまま残ります。

パラメータ

connection

アクティブな DB2 クライアント接続を指定します。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

例 1. 接続を閉じる

以下では IBM DB2、Cloudscape あるいは Apache Derby データベースとの接続が正常に閉じられた場合の例を示します。

<?php
$conn
= db2_connect('SAMPLE', 'db2inst1', 'ibmdb2');
$rc = db2_close($conn);
if (
$rc) {
   echo
"接続が正しく閉じられました。";
}
?>

上の例の出力は以下となります。

接続が正しく閉じられました。



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

<db2_client_infodb2_column_privileges" width="11" height="7"/>
 Last updated: Sun, 07 May 2006
show source | credits | sitemap | contact | advertising | mirror sites 
Copyright © 2001-2006 The PHP Group
All rights reserved.
This mirror generously provided by: PacketBusiness, Inc.
Last updated: Mon Sep 4 08:30:20 2006 JST