Rechercher une fonction PHP

cubrid_get_query_timeout

(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.

PHP: cubrid_get_query_timeout - Manual Home of Manuel PHP  Contents Haut

Parameters

req_identifier

Request identifier.

PHP: cubrid_get_query_timeout - Manual Home of Manuel PHP  Contents Haut

Return Values

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

Failure: FALSE

PHP: cubrid_get_query_timeout - Manual Home of Manuel PHP  Contents Haut

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)
Find a PHP function

English translation

You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.

If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.

Thank you in advance.

Document created the 30/01/2003, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/php-rf-cubrid-get-query-timeout.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : http://php.net

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut