7 checkurl('www.php.net');
8 checkurl('pear.php.net');
9 checkurl('pecl.php.net');
14 $pool = new HttpRequestPool(
15 new HttpRequest('http://www.php.net/', HTTP_HEAD),
16 new HttpRequest('http://pear.php.net/', HTTP_HEAD),
17 new HttpRequest('http://pecl.php.net/', HTTP_HEAD)
20 foreach ($pool as $req) {
21 echo $req->getUrl(), '=',
22 $req->getResponseCode(), ':',
23 $req->getResponseMessage()->getResponseCode(), "\n";
29 http://www.php.net/=200:200
30 http://pear.php.net/=200:200
31 http://pecl.php.net/=200:200