PHP function socket_set_timeout()
Availability in PHP 4.0
&Alias;
Set timeout period on a stream
Parameters
| Parameter | Data type | Default value | Note |
|---|---|---|---|
$stream |
resource |
not | The target stream. |
$seconds |
int |
not | The seconds part of the timeout to be set. |
$microseconds |
int |
0 |
Return values
bool
Returns true on success, otherwise false on failure.