Skip to content

CurlMultiHandler :: execute()

Brian Boll edited this page Apr 23, 2018 · 3 revisions

CurlMultiHandler :: execute()

$mch = new MultiCurlHandler();
$ch = new CurlHandler('http://example.com');

//Returns the result on success
$ch->setOption(CURLOPT_RETURNTRANSFER, true);

//Add the handle to the multi handler
$mch->addHandle($ch);

echo $mch->execute();

Parameters [0]:

No parameters

Returns:

Returns TRUE on success or FALSE on failure. If CURLOPT_RETURNTRANSFER is set, it will return the result on success instead

Clone this wiki locally