Re: Re: fopen() for http:// sometimes working, sometimes not

From: Date: Mon, 31 Dec 2007 01:14:11 +0000
Subject: Re: Re: fopen() for http:// sometimes working, sometimes not
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-266412@lists.php.net to get a copy of this message
DNS records are failing to lookup the domain name for you... Maybe just put the URL back into a queue to try later. You should also toy with nslookup or dig from the command line and see if you can get it to fail as often. On Thu, December 27, 2007 12:00 pm, Albert Wiersch wrote: > > Some additional info. It seems I am getting these warnings when it > fails: > > Warning: fopen() [function.fopen]: php_network_getaddresses: > getaddrinfo > failed: Name or service not known > > Warning: fopen(http://wanganda2u.co.uk) [function.fopen]: failed to > open > stream: > > Now I have to find out why that is failing some of the time but not > other > times. > > -- > Albert Wiersch > Fix your website: http://onlinewebcheck.com > > > ""Albert Wiersch"" <support@htmlvalidator.com> wrote in message > news:D5.5A.52211.973D3774@pb1.pair.com... >> >> I noticed my script at http://onlinewebcheck.com was >> sometimes >> (fairly >> often) failing to open some URLs that users have entered. fopen() >> returns >> false very quickly, but when tried again with the same URL, >> sometimes it >> works. What would cause this behavior? Why does fopen() occasionally >> fail >> to open valid http addresses but works at other times? >> >> -- >> Albert Wiersch > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So?

« previous php.general (#266412) next »