摘要: start(); $process->write($i); $workers[] = $process; } //主进程数据结果 foreach ($workers as $process){ echo $process->read(); echo PHP_EOL; } echo "end:".date("Y-m-d H:i:s").PHP_EOL; $end_t... 阅读全文
posted @ 2017-09-26 16:00 宇宙神奇 阅读(433) 评论(0) 推荐(0) 编辑
摘要: $v ) { $headerArr[] = $n .':' . $v; } foreach ($url as $i => $value) { $conn[$i] = curl_init($url[$i]); curl_setopt($conn[$i], CURLOPT_CUSTOMREQUEST, "GET"); ... 阅读全文
posted @ 2017-09-26 15:58 宇宙神奇 阅读(420) 评论(0) 推荐(0) 编辑