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

From: Date: Thu, 27 Dec 2007 17:05:02 +0000
Subject: Re: fopen() for http:// sometimes working, sometimes not
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-266303@lists.php.net to get a copy of this message
On Dec 27, 2007 11:31 AM, Albert Wiersch <support@htmlvalidator.com> wrote: > > 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? Are the URLs being passed to fopen() properly escaped? Are they valid, complete with http:// placed before the domain? Try keeping a log of all URLs entered for a bit, and see which ones fail. -- Daniel P. Brown [Phone Numbers Go Here!] [They're Hidden From View!] If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you.

« previous php.general (#266303) next »