Re: Mirror.php

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Alexey Borzov" <borz_off(at)cs(dot)msu(dot)su>
Cc: <pgsql-www(at)postgresql(dot)org>
Subject: Re: Mirror.php
Date: 2004-12-04 20:18:16
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E4527CCA@ratbert.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

> -----Original Message-----
> From: Alexey Borzov [mailto:borz_off(at)cs(dot)msu(dot)su]
> Sent: 04 December 2004 18:35
> To: Dave Page
> Cc: pgsql-www(at)postgresql(dot)org
> Subject: Re: [pgsql-www] Mirror.php
>
> ::scratches head::
> Well, the PEAR code boils down to the example above if you
> strip all the pretty stuff out. Please try running the
> following script, maybe it will give some insight:
>
> <?php
> error_reporting(E_ALL);
> var_dump(gethostbyname('wwwmaster.postgresql.org'));
>
> require_once 'HTTP/Request.php';
> PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'var_dump'); $req
> =& new HTTP_Request('http://wwwmaster.postgresql.org/');
> $req->sendRequest();
> ?>
>

root(at)developer:/usr/local/www/wwwmaster.postgresql.org/www/tools# php -d
include_path=/usr/local/www/portal.postgresql.org/pear/lib test3.php
string(13) "194.217.48.42"
root(at)developer:/usr/local/www/wwwmaster.postgresql.org/www/tools#

Regards, Dave.

Responses

Browse pgsql-www by date

  From Date Subject
Next Message Alexey Borzov 2004-12-04 22:21:08 Re: Mirror.php
Previous Message Alexey Borzov 2004-12-04 18:35:07 Re: Mirror.php