Easy Tutorial
❮ Func Date Idate Func Ftp Quit ❯

PHP curl_multi_select Function

PHP cURL Reference Manual

(PHP 5)

curl_multi_select — Waits for activity on any cURL multi batch connection


Description

int curl_multi_select ( resource $mh [, float $timeout = 1.0 ] )

Blocks until there is activity on any connection in the cURL multi batch.


Parameters

mh

A cURL multi handle returned by curl_multi_init().

timeout

The time in seconds to wait for a response.


Return Value

Returns the number of descriptors contained in the descriptor sets on success. On failure, it returns -1 if the select fails, otherwise it returns the timeout (from the underlying select system call).


PHP cURL Reference Manual

❮ Func Date Idate Func Ftp Quit ❯