Re: PHP 4.0 Bug #8552 Updated: fopen doesn't open URL

From: Date: Thu, 04 Jan 2001 22:44:52 +0000
Subject: Re: PHP 4.0 Bug #8552 Updated: fopen doesn't open URL
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-42996@lists.php.net to get a copy of this message
Stig Venaas wrote: > 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. :) You are quite correct, I should have checked to see if it was redirected before testing. > Could you check if fopen > ("http://www.yahoo.com/index.html", "r"); Works like a charm... > 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? Your comment about a redirect got me thinking. I tried the url that was posted in the bug report (http://ir.stockmaster.com/c/pbn/stocks.html) - and I did get an error message. This is may be because the client gets routed to a different location - http://ir1.stockmaster.com/c/pbn/stocks.html --zak

« previous php.dev (#42996) next »