PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

cubrid_get_query_timeout - Get the query timeout value of the request | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

cubrid_get_query_timeout

(PECL CUBRID >= 8.4.1)

cubrid_get_query_timeoutGet the query timeout value of the request

説明

int cubrid_get_query_timeout ( resource $req_identifier )

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

パラメータ

req_identifier

Request identifier.

返り値

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

Failure: FALSE

例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);
?>

上の例の出力は以下となります。

int(5000)
int(1000)

参考


忘却曲線を使ってこの関数を確実に記憶に残す

フォーラムで「cubrid_get_query_timeout - Get the query timeout value of the request」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | cubrid_get_query_timeout - Get the query timeout value of the request」をGoogle検索
copyright © 1997-2024 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: