rendered paste body<?
$sites = array(
"microsoft.com",
"sp2.org",
"sitioshispanos.com",
"absolutelypsychic.com",
"websitesource.com"
);
foreach($sites as $element) {
echo "Opening connection to ".$element."\r\n";
$new[$i] = fsockopen($element, 80, $errno, $errstr, 30);
$out = "GET / HTTP/1.1\r\n";
$out .= "Host: ".$element."\r\n";
$out .= "Connection: Close\r\n\r\n";
fwrite($new[$i++], $out);
}
$any = TRUE;
while ($any === TRUE) {
$any = FALSE;
for ($i=0;$i<count($new);$i++) {
if ($new[$i] && !feof($new[$i])) {
$any = TRUE;
fgets($new[$i], 128);
echo ".";
}
}
}
echo "\r\n\r\nDone.\r\n\r\n";
?>