芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/rentandbuyrealty.com/pay/vendor/rmccue/requests/examples/multiple.php
'http://httpbin.org/get', 'headers' => array('Accept' => 'application/javascript'), ), 'post' => array( 'url' => 'http://httpbin.org/post', 'data' => array('mydata' => 'something'), ), 'delayed' => array( 'url' => 'http://httpbin.org/delay/10', 'options' => array( 'timeout' => 20, ), ), ); // Setup a callback function my_callback(&$request, $id) { var_dump($id, $request); } // Tell Requests to use the callback $options = array( 'complete' => 'my_callback', ); // Send the request! $responses = Requests::request_multiple($requests, $options); // Note: the response from the above call will be an associative array matching // $requests with the response data, however we've already handled it in // my_callback() anyway! // // If you don't believe me, uncomment this: # var_dump($responses);