(PHP 4 >= 4.3.0, PHP 5, PHP 7)
Set timeout period on a stream
bool stream_set_timeout ( resource $stream, int $seconds [, int $microseconds = 0 ] )
Sets the timeout value on stream, expressed in the sum of seconds and microseconds.
When the stream times out, the 'timed_out' key of the array returned by stream_get_meta_data() is set to TRUE, although no error/warning is generated.
Parameters: