Search Results
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.
stream_set_timeout Function Availability ... PHP Codex data is built by collecting PHP symbol data on the latest release of each PHP version, or the nightly builds of the active development branch, and analyzing them to determine their availability and signature data. This ensures that symbol changes and availability is technically the most ...
Execute stream_set_timeout Online. Info and examples on stream_set_timeout PHP Function from Streams - Other Basic Extensions
Simple usage example of `stream_set_timeout ()`. The stream_set_timeout function is used to set the timeout period on a given stream. This function allows you to specify the maximum time, in seconds, to wait for data to be read or written on the stream. If no data is received within the specified timeout period, the function will return false.
Set timeout period on a stream
stream_set_timeout — Set timeout period on a stream stream_set_write_buffer — Sets write file buffering on the given stream stream_socket_accept — Accept a connection on a socket created by stream_socket_server stream_socket_client — Open Internet or Unix domain socket connection
This function doesn't work with advanced operations like stream_socket_recvfrom (), use stream_select () with timeout parameter instead. This function was previously called as set_socket_timeout () and later socket_set_timeout () but this usage is deprecated.
