rendered paste body $sumslots = 0;
$sumlisteners = 0;
for ($i = 0; $i<count($sites); $i++)
{
// get curl handle
$ch = curl_init();
$addy = "http://".$sites[$i].":".$ports[$i]."/7.html";
//echo "$addy";
// set curl options
curl_setopt($ch, CURLOPT_URL, $addy);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla");
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// get server info
$info = curl_exec($ch);
// close curl resource, and free up system resources
curl_close($ch);
$info = str_replace('<HTML><meta http-equiv="Pragma" content="no-cache"></body></html>', "", $info);
$splitInfo = explode(',', $info);
$listeners = $splitInfo[0];
//var_dump($listeners);
//$final = settype($listeners, "integer");
//echo "INTEGERVALUE: $final<br>";
$slots = $splitInfo[3];
echo "SLOTS:$slots<br>";
$sumslisteners = $sumlisteners + $listeners;
$sumslots = $sumslots + $slots;
}