Re: PHP 4.0 Bug #8552 Updated: fopen doesn't open URL
| From: | Cynic | Date: | Fri, 05 Jan 2001 18:05:25 +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-43066@lists.php.net to get a copy of this message | ||
At 18:30 5.1. 2001, Zak Greant wrote the following:
--------------------------------------------------------------
>> 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
------end of quote------
In that case, I would like the notice mechanism be done so
that it's easy to get the server response code... BTW, what
would happen if server returned 300 (Multiple Choices)?
____________________________________________________________
Cynic:
A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.
cynic@mail.cz