Please wait while we load your page...

PasswordSentry

Latest Version [8.00202205221] Last Updated [May-22-2022]

Tools

PHP Manual [cubrid_get_query_timeout]

Protect Your Website Today


PHP Manual || CUBRID Functions

(PECL CUBRID >= 8.4.1)

cubrid_get_query_timeoutGet the query timeout value of the request

Description

cubrid_get_query_timeout ( resource $req_identifier ) : int

The cubrid_get_query_timeout() function is used to get the query timeout of the request.

Parameters

req_identifier

Request identifier.

Return Values

Success: the query timeout value of the current request. Units of msec.

Failure: FALSE

Examples

Example #1 cubrid_get_query_timeout() example

<?php

$host 
"localhost";
$port 33000;
$db "demodb";

$conn =
cubrid_connect_with_url("CUBRID:$host:$port:$db:::?login_timeout=50000&query_timeout=5000&disconnect_on_query_timeout=yes");

$req cubrid_prepare($conn"SELECT * FROM code");

$timeout cubrid_get_query_timeout($req);
var_dump($timeout);

cubrid_set_query_timeout($req1000);
$timeout cubrid_get_query_timeout($req);
var_dump($timeout);

cubrid_close($conn);
?>

The above example will output:

int(5000)
int(1000)

See Also



PHP Manual || CUBRID Functions