Menu Samaritan's Purse

STREAM_SET_TIMEOUT

Set timeout period on a stream

SYNTAX

stream_set_timeout ( resource $stream , int $seconds [, int $microseconds = 0 ] ) : bool

PARAMETERS

stream

The target stream.

seconds

The seconds part of the timeout to be set.

microseconds

The microseconds part of the timeout to be set.

RETURN

Returns TRUE on success or FALSE on failure.

EXAMPLES

STREAM SECONDS

timed out

MICROSECONDS

timed out

RETURN

true

PHP