Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / MultiCurlHead.php
Created August 26, 2015 17:03
<?php
function getHead($urls){
$results = array();
// make sure the rolling window isn't greater than the # of urls
$rolling_window = 5;
$rolling_window = (sizeof($urls) < $rolling_window) ? sizeof($urls) : $rolling_window;
$master = curl_multi_init();
// $curl_arr = array();