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: fbsql_pconnect - Manual
[go: Go Back, main page]

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

search for in the

fbsql_query" width="11" height="7"/> <fbsql_password
Last updated: Fri, 04 Jul 2008

view this page in

fbsql_pconnect

(PHP 4 >= 4.0.6, PHP 5)

fbsql_pconnect — FrontBase サーバへの持続的接続をオープンする

説明

resource fbsql_pconnect ([ string $hostname [, string $username [, string $password ]]] )

FrontBase サーバへの持続的な接続を確立します。

サーバのポート番号を指定するには fbsql_select_db() を使用します。

fbsql_pconnect()fbsql_connect() とほとんど同じように動作しますが、 2 つの大きな違いがあります。

まず、接続の際に、この関数は事前に同じホスト・ユーザ名・パスワードで オープンされている (持続的) リンクを探そうとします。 見つかった場合には、新しい接続をオープンせずにその接続の ID を 返します。

次に、SQL サーバへの接続はスクリプトが終了しても閉じられません。 その代わりに、今後利用されるときのためにオープンされたままとなります。

これらにより、この形式のリンクは「持続的(persistent)」と呼ばれます。

パラメータ

hostname

ホスト名。デフォルトは localhost

username

接続時のユーザ名。デフォルトは _SYSTEM

password

接続時のパスワード。デフォルトは空の文字列。

返り値

成功した場合には正の FrontBase 持続的リンク ID、 エラー時には FALSE を返します。



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

fbsql_query" width="11" height="7"/> <fbsql_password
Last updated: Fri, 04 Jul 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites