stream_set_timeout

 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.

戻り値

Returns TRUE on success or FALSE on failure.