| Justin Patrin 2005-05-02, 8:57 pm |
| On 5/2/05, Rob Barreca <rob@electronicinsight.com> wrote:
> Well, I tried using HTTP_Request thinking maybe it was Snoopy, but it
> does not work remotely either. It's strange because when I run the
> following code locally, it grabs the webpage, but my remote server can't
> seem to "see" http://www.thehealthinsurance.com/. Anybody have any
> thoughts on this?
So you're getting an fsockopen error? Your problem is that your remote
server a) has these connections turned off in PHP, b) has a bogus /
bad DNS server which is bungling the DNS lookup, c) has a firewall
which stops outgoing traffic, d) is simply broken.
>=20
> When I go straight to the IP for http://www.thehealthinsurance.com/
> (ping'd and found it was 69.36.176.169) it is actually a different web
> page (http://www.italian-charms-and-bracelets.com/), so they have
> multiple websites hosted on the same IP and I'm sure this is what's
> causing the trouble, but don't know how to work around it.
I doubt that's your problem. It's called a virtual server and it's
used all over the place. Ever had a shared hosting account? It's on a
virtual server unless you have your own IP.
[color=darkred]
>=20
> require_once "HTTP/Request.php";
>=20
> $req =3D& new HTTP_Request("http://www.thehealthinsurance.com/");
> if (!PEAR::isError($req->sendRequest())) {
> echo $req->getResponseBody();
> } else {
> print_r($req);
> }
>=20
> Justin Patrin wrote:
>=20
--=20
Justin Patrin
|