socketPerform(); $i++) { $i % 10 or print "."; if (!$this->socketSelect()) { throw new HttpException("Socket error!"); } } print "\nDone!\n"; } } try { foreach (new Pool as $r) { echo "Checking ", $r->getUrl(), " reported ", $r->getResponseCode(), "\n"; } } catch (HttpException $ex) { print $e; } ?>