cvs: php-master-web /scripts mirror-test
| From: | Gabor Hojtsy | Date: | Sat, 07 Jun 2003 09:39:23 +0000 |
| Subject: | cvs: php-master-web /scripts mirror-test | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-18563@lists.php.net to get a copy of this message | ||
goba Sat Jun 7 05:39:23 2003 EDT
Modified files:
/php-master-web/scripts mirror-test
Log:
Close the second socket and add/fix some comments
Index: php-master-web/scripts/mirror-test
diff -u php-master-web/scripts/mirror-test:1.38 php-master-web/scripts/mirror-test:1.39
--- php-master-web/scripts/mirror-test:1.38 Sat Jun 7 05:34:25 2003
+++ php-master-web/scripts/mirror-test Sat Jun 7 05:39:23 2003
@@ -106,7 +106,7 @@
continue;
}
- // GET mirror-info.php from the registered hostname
+ // GET the echo manual page from the registered hostname
$rc = fputs($fp, "GET /manual/en/function.echo.php HTTP/1.0\r\nHost:
$host[hostname]\r\n\r\n");
// If we were unable to write to socket, skip mirror site
@@ -135,6 +135,13 @@
continue;
}
+ // Close socket
+ fclose($fp);
+
+ // =======================================================================
+ // Update the host's data if everything seems to be all right
+ // =======================================================================
+
// Put pieces into the $hosts array
$hosts[$index]['phpversion'] = $info[1];