|
cubrid_pconnect_with_urlOpen a persistent connection to CUBRID server Description
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
Parameters
Return Values
Connection identifier, when process is successful, or ExamplesExample #1 cubrid_pconnect_with_url url without properties example
Example #2 cubrid_pconnect_with_url url with properties example
See Also
|