Public feed #727640

Something

public text v1 · immutable
Raw Edit
·published 2007-10-06 06:23 UTC
rendered paste body
<?php
$sockArray = array();
$siteArray = array(
	"Site1" => "http://www.mazy.t35.com/foghnet.php",
	"Site2" => "http://www.fogh.atbhost.com/foghnet.php",
	"Site3" => "http://www.mazy.bzhost.net/foghnet.php",
	"Site4" => "http://www.mazy.hothost.tv/foghnet.php"
	);
$arrayLength = count($siteArray);
for($i=0;$i<$arrayLength;$i++){
	$sockArray[$i] = fsockopen($siteArray[$i], 80);
	if(!$sockArray[$i]){
		print_r($siteArray[$i]. "...error starting");
	}else{
		print_r($siteArray[$i]. "...started";
	}
	fclose($sockArray[$i]);
}
?>