PHP function stream_set_timeout()

Availability in versions: PHP 4.3.0

Set timeout period on a stream

Parameters

Parameter Data type Default value Note
$stream resource not The target stream.
$seconds int not The seconds part of the timeout to be set.
$microseconds int null

Return values

bool

Returns true on success, otherwise false on failure.

Other resources

Official stream-set-timeout documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.