[nycphp-talk] Help -- header redirection problem
Rick Olson
rolson at aeso.org
Tue Sep 26 20:32:02 EDT 2006
One thing that might be causing the issue is a borked/neverending
mod_rewrite rule...\
Rick Olson wrote:
> I tried the following code just now using multiple URLs, both HTTPS &
> HTTP, with nested output buffering even, and variations thereof, and
> have not managed to trigger that error :(
>
> ob_start();
> print 'before';
> print 'do stuff...';
> print 'xxxxxx';
> ob_end_clean();
> header("Location: https://www.paypal.com");
> exit;
>
>
> Anything else in there that might be causing the problem?
>
> --
> Rick
>
>
> Cliff Hirsch wrote:
>
>> I have a short script that redirects pages to http or https as
>> required, but am having problems.
>>
>> The function works fine, but hiccups once output buffering is turned
>> on. Unfortunately, some redirection can’t occur until after output
>> buffering is on – legacy code…
>>
>> I though redirection should work fine though because I clean the
>> output buffer as follows:
>>
>> ob_end_clean();
>>
>> header("Location: https://$path");
>>
>> exit;
>>
>> Firefox gives me the following error message:
>>
>> The page isn't redirecting properly
>>
>> Firefox has detected that the server is redirecting the request for
>> this address in a way that will never complete.
>>
>> This problem can sometimes be caused by disabling or refusing to
>> accept cookies.
>>
>> Any ideas? I’m pulling my hair out.
>>
>> Cliff
>>
>> _______________________________
>> *Pinestream Communications, Inc.*
>> Publisher of /Semiconductor Times/ & /Telecom Trends/
>> 52 Pine Street, Weston, MA 02493 USA
>> Tel: 781.647.8800, Fax: 781.647.8825
>> http://www.pinestream.com <http://www.pinestream.com/>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> New York PHP Community Talk Mailing List
>> http://lists.nyphp.org/mailman/listinfo/talk
>>
>> NYPHPCon 2006 Presentations Online
>> http://www.nyphpcon.com
>>
>> Show Your Participation in New York PHP
>> http://www.nyphp.org/show_participation.php
>>
>>
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
>
>
More information about the talk
mailing list