English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Basic PHP Tutorial

Advanced PHP Tutorial

PHP & MySQL

PHP Reference Manual

Usage and Examples of PHP curl_multi_select() Function

PHP CURL Reference Manual

(PHP 5)

curl_multi_select — Wait for active connections in all CURL batch processes

Syntax

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

Blocks until there is an active connection in the CURL batch connection.

Parameter

mh

CURL multiple handles returned by curl_multi_init().

timeout

Time to wait for a response in seconds.

Return value

Returns the number of descriptors in the descriptor set when successful. When failed, the return value is-1Otherwise, a timeout is returned (from the underlying select system call).

PHP CURL Reference Manual