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

Re: [PHP] fopen for http://

2005-05-27 Thread Philip Hallstrom
I was wondering if anyone knew of a way to call a web site using fopen. Let me tell you how things are set up and what I'm trying to do. I can call fopen to read a site and then echo it back out. That's not a problem. The problem I run into is when I try to go to a restricted area of a site.

Re: [PHP] fopen for http://

2005-05-27 Thread Rory Browne
On 5/27/05, Jay Paulson <[EMAIL PROTECTED]> wrote: > Hello all- > > I was wondering if anyone knew of a way to call a web site using fopen. > Let me tell you how things are set up and what I'm trying to do. I > can call fopen to read a site and then echo it back out. That's not a > problem. T

[PHP] fopen for http://

2005-05-27 Thread Jay Paulson
Hello all- I was wondering if anyone knew of a way to call a web site using fopen. Let me tell you how things are set up and what I'm trying to do. I can call fopen to read a site and then echo it back out. That's not a problem. The problem I run into is when I try to go to a restricted a