Re: PHP 4.0 Bug #8552 Updated: fopen doesn't open URL
| From: | Stig Venaas | Date: | Thu, 04 Jan 2001 22:26:56 +0000 |
| Subject: | Re: PHP 4.0 Bug #8552 Updated: fopen doesn't open URL | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-42993@lists.php.net to get a copy of this message | ||
On Thu, Jan 04, 2001 at 03:12:55PM -0700, Zak Greant wrote:
> Hi Stig,
>
> I can confirm this behavior on my Win2k box running PHP 4.0.4/IIS
>
> fopen ("http://www.yahoo.com/", "r"); //
> Works
> fopen ("http://yahoo.com/", "r"); //
> Fails
I think that bug is something different, I think yahoo.com fails
because fopen doesn't handle redirects. Of course the success
error is no good, the reason for that is that fopen gives the
error of the last system call, but the redirect doesn't cause a
system call failure. I'll fix it so it gives a better error
message or so it handles redirects.
Could you check if fopen ("http://www.yahoo.com/index.html",
"r");
works? Seems this user can't get that to work. That's why I'm
thinking of regexp problems. Could you check with this URL too Mike?
Stig