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

From: Date: Fri, 05 Jan 2001 17:30:50 +0000
Subject: Re: PHP 4.0 Bug #8552 Updated: fopen doesn't open URL
References: 1 2 3 4 5 6 7  Groups: php.dev 
Request: Send a blank email to php-dev+get-43056@lists.php.net to get a copy of this message
----- Original Message ----- From: "Stig Venaas" <Stig.Venaas@uninett.no> To: "Mike Boulet" <mike@newfangled.com> Cc: "Zak Greant" <zak@nucleus.com> Sent: Friday, January 05, 2001 6:06 AM Subject: Re: [PHP-DEV] PHP 4.0 Bug #8552 Updated: fopen doesn't open URL > On Fri, Jan 05, 2001 at 07:59:28AM -0500, Mike Boulet wrote: > > Thanks Zak, that worked! > > > > Stig, > > Did the 3.0.16 version handle redirects differently? > > As I just said in a mail, 4.0.2 did, I'm not sure about 3.0.16 but it's > likely. Unless anyone gives me any good reason for not handling redirects > I'll try to add support back in. It is possible to look at the redirect > and do another fopen in your script though by checking that variable with > the http-header. But it's a rather awkward solution. Perhaps it would be good to throw a notice level error when handling redirects - redirects are often put into place when a resource has moved. If PHP handles them perfectly transparently, then the site admin may not know that a resource has moved til the redirect is removed. --zak

« previous php.dev (#43056) next »