downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

SQLite3::changes> <SQLite3
[edit] Last updated: Wed, 22 May 2013

view this page in

SQLite3::busyTimeout

(PHP 5 >= 5.3.3)

SQLite3::busyTimeoutSets the busy connection handler

Description

public bool SQLite3::busyTimeout ( int $msecs )

Sets a busy handler that will sleep until the database is not locked or the timeout is reached.

Parameters

msecs

The milliseconds to sleep. Setting this value to a value less than or equal to zero, will turn off an already set timeout handler.

Return Values

Returns TRUE on success, FALSE on failure.



add a note add a note User Contributed Notes SQLite3::busyTimeout - [1 notes]
up
-1
strugglecrb
10 months ago
Example usage:

<?php
if($this->busyTimeout(2000))
{
   
$this->exec($strSql);
}
//Release
$this->busyTimeout(0);
?>

 
show source | credits | sitemap | contact | advertising | mirror sites