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

2007-12-27 Thread Daniel Brown
On Dec 27, 2007 12:57 PM, Albert Wiersch <[EMAIL PROTECTED]> wrote: > What needs to be escaped for a URL anyway? I am just changing spaces to > '%20' now. Arbitrary code can still be injected unless it's properly sanitized, but that's beyond the scope here. Mainly, make sure quotes (singl

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

2007-12-27 Thread Albert Wiersch
""Daniel Brown"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Dec 27, 2007 11:31 AM, Albert Wiersch <[EMAIL PROTECTED]> > wrote: > >Are the URLs being passed to fopen() properly escaped? Are they > valid, complete with http:// placed before the domain? Try keeping a > l

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

2007-12-27 Thread Daniel Brown
On Dec 27, 2007 11:31 AM, Albert Wiersch <[EMAIL PROTECTED]> 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 > wor

[PHP] fopen() for http:// sometimes working, sometimes not

2007-12-27 Thread Albert Wiersch
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