public inbox for [email protected]  
help / color / mirror / Atom feed
From: Dave Page <[email protected]>
To: Alexey Borzov <[email protected]>
Cc: [email protected]
Subject: Re: Mirror.php
Date: Sat, 4 Dec 2004 20:18:16 -0000
Message-ID: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4527CCA@ratbert.vale-housing.co.uk> (raw)

 

> -----Original Message-----
> From: Alexey Borzov [mailto:[email protected]] 
> Sent: 04 December 2004 18:35
> To: Dave Page
> Cc: [email protected]
> 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@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@developer:/usr/local/www/wwwmaster.postgresql.org/www/tools#

Regards, Dave.



view thread (8+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Mirror.php
  In-Reply-To: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4527CCA@ratbert.vale-housing.co.uk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox