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

search for in the

ifx_connect> <ifx_byteasvarchar
Last updated: Fri, 13 Nov 2009

view this page in

ifx_close

(PHP 4, PHP <=5.2.0)

ifx_closeInformix 接続を閉じる

説明

bool ifx_close ([ resource $link_identifier ] )

ifx_close() は、 指定したリンク ID に関連づけられた Informix データベースへの接続を閉じます。

非持続的接続としてオープンされたリンクはスクリプトの実行終了時に 自動的に閉じられるため、 この関数は通常は必要ではないことに注意してください。

ifx_close() は、ifx_pconnect() により作成された持続的リンクは閉じません。

パラメータ

link_identifier

リンク ID。指定しなかった場合は、最後にオープンされたリンクが仮定されます。

返り値

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

例1 Informix 接続を閉じる

<?php
$conn_id 
ifx_connect ("mydb@ol_srv""itsme""mypassword");
/* ... クエリ等を実行 ... */
ifx_close($conn_id);
?>

参考



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

ifx_connect> <ifx_byteasvarchar
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites