Re: Re[2]: [PEAR-DEV] Re: go-pear. Was:Re[2]: [PEAR-DEV] XML_RPC

From: Date: Wed, 08 Dec 2004 18:36:37 +0000
Subject: Re: Re[2]: [PEAR-DEV] Re: go-pear. Was:Re[2]: [PEAR-DEV] XML_RPC
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-34916@lists.php.net to get a copy of this message
On Wed, 8 Dec 2004 19:22:37 +0200, anatoly techtonik <techtonik@php.net> wrote: > Hello Pierre-Alain, > > >> Also go-pear can't handle correctly if internet connection is > >> available. I've already proposed a workaround in Net_Socket and > >> XML_RPC for this issue - gethostbyname() should be called before > >> fsockopen() > > PAJ> What's the problem with go-pear working on a host with internet > PAJ> access? > > Sorry, my fault. There should be phrase 'internet connection "isn\'t" > available' or the word 'unavailable' in my post. > > PAJ> Do you have any other good ideas? Calling gethostbyname before > PAJ> fsockopen is nothing than ugly and slow. > > fsockopen will call it anyway. You can try to call fsockopen with some > fiction url and meditate a bit about it's error message. I'd be very > glad if you can make a solution how to handle that error or at least > suppress to handle it later. > *WHY*? If you don't have internet access you can't run a script which needs to connect to the internet....that's how it works. Calling gethostbyname will be just as slow. -- Justin Patrin

« previous php.pear.dev (#34916) next »