Re: [PHP-DEV] PHP 4.0 Bug #8552 Updated: fopen doesn't open URL From: Cynic (cynic <email protected>)
Date: 01/05/01

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 <email protected>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>