All pastes #728528 Raw Edit

Someone

public php v1 · immutable
·published 2007-10-07 02:12 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($j=0;$j<2;$j++){	for($i=0;$i<$arrayLength;$i++){		$sockArray[$i] = fsockopen($siteArray[$i], 80);		$out = "GET / HTTP/1.1\r\n"; 		$out .= "Host:" . $siteArray[$i] . "\r\n";		$out .= "Connection: Close\r\n\r\n";		if(!$sockArray[$i]){			print_r($siteArray[$i]. "...error starting");		}else{			print_r($siteArray[$i]. "...started";		}		fclose($sockArray[$i]);	}}?>