socket_set_timeout

(PHP 4 >= 4.0.0)

socket_set_timeout -- Set timeout period on a socket

Description

bool socket_set_timeout ( int socket descriptor, int seconds, int microseconds)

Sets the timeout value on socket descriptor, expressed in the sum of seconds and microseconds.

This function was previously called as set_socket_timeout() but this usage is deprecated.

See also: fsockopen() and fopen().