摘要: // 1. 批处理器$mh = curl_multi_init();// 2. 加入需批量处理的URLfor ($i = 0; $i < $max_connections; $i++) { add_url_to_multi_handle($mh, $url_list);}// 3. 初始处理do { $mrc = curl_multi_exec($mh, $active);} while ($mrc == CURLM_CALL_MULTI_PERFORM);// 4. 主循环while ($active && $mrc == CURLM_OK) { // 5. 有活动连接 阅读全文
posted @ 2013-05-17 10:55 王云龙在此 阅读(563) 评论(0) 推荐(0)