X-Original-To: pgsql-www-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E1F0D3A5CC5 for ; Sat, 4 Dec 2004 20:18:36 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 45891-10 for ; Sat, 4 Dec 2004 20:18:16 +0000 (GMT) Received: from anchor-post-32.mail.demon.net (anchor-post-32.mail.demon.net [194.217.242.90]) by svr1.postgresql.org (Postfix) with ESMTP id 1FEE33A5CB4 for ; Sat, 4 Dec 2004 20:18:17 +0000 (GMT) Received: from mailgate.vale-housing.co.uk ([194.217.48.34] helo=ratbert.vale-housing.co.uk) by anchor-post-32.mail.demon.net with esmtp (Exim 4.42) id 1CagMD-000Hxw-7U for pgsql-www@postgresql.org; Sat, 04 Dec 2004 20:18:17 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Subject: Re: Mirror.php Date: Sat, 4 Dec 2004 20:18:16 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [pgsql-www] Mirror.php Thread-Index: AcTaMCJJ6zR3BB7dTpenSKbYwzyA3gADgXtw From: "Dave Page" To: "Alexey Borzov" Cc: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.002 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200412/64 X-Sequence-Number: 6183 =20 > -----Original Message----- > From: Alexey Borzov [mailto:borz_off@cs.msu.su]=20 > Sent: 04 December 2004 18:35 > To: Dave Page > Cc: pgsql-www@postgresql.org > Subject: Re: [pgsql-www] Mirror.php >=20 > ::scratches head:: > Well, the PEAR code boils down to the example above if you=20 > strip all the pretty stuff out. Please try running the=20 > following script, maybe it will give some insight: >=20 > error_reporting(E_ALL); > var_dump(gethostbyname('wwwmaster.postgresql.org')); >=20 > require_once 'HTTP/Request.php'; > PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'var_dump'); $req=20 > =3D& new HTTP_Request('http://wwwmaster.postgresql.org/'); > $req->sendRequest(); > ?> >=20 root@developer:/usr/local/www/wwwmaster.postgresql.org/www/tools# php -d include_path=3D/usr/local/www/portal.postgresql.org/pear/lib test3.php string(13) "194.217.48.42" root@developer:/usr/local/www/wwwmaster.postgresql.org/www/tools# Regards, Dave.