| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
cubrid_pconnect_with_url(PECL CUBRID >= 8.3.1) cubrid_pconnect_with_url — Open a persistent connection to CUBRID server 説明
resource cubrid_pconnect_with_url
( string
$conn_url
[, string $userid
[, string $passwd
]] )Establishes a persistent connection to a CUBRID server. cubrid_pconnect_with_url() acts very much like cubrid_connect_with_url() with two major differences. First, when connecting, the function would first try to find a (persistent) link that's already open with the same host, port, dbname and userid. If one is found, an identifier for it will be returned instead of opening a new connection. Second, the connection to the SQL server will not be closed when the execution of the script ends. Instead, the link will remain open for future use (cubrid_close() or cubrid_disconnect() will not close links established by cubrid_pconnect_with_url()). This type of link is therefore called 'persistent'. <url> ::= CUBRID:<host>:<db_name>:<db_user>:<db_password>:[?<properties>] <properties> ::= <property> [&<property>] <properties> ::= alhosts=<alternative_hosts>[ &rctime=<time>] <properties> ::= login_timeout=<milli_sec> <properties> ::= query_timeout=<milli_sec> <properties> ::= disconnect_on_query_timeout=true|false <alternative_hosts> ::= <standby_broker1_host>:<port> [,<standby_broker2_host>:<port>] <host> := HOSTNAME | IP_ADDR <time> := SECOND <milli_sec> := MILLI SECOND
パラメータ
返り値Connection identifier, when process is successful.
例例1 cubrid_pconnect_with_url() url without properties example
<?php 例2 cubrid_pconnect_with_url() url with properties example
<?php 参考
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「cubrid_pconnect_with_url - Open a persistent connection to CUBRID server」をGoogle検索
|