Web lists-archives.com

Re: [PHP] header() not working?




On Sat, Dec 10, 2016 at 8:29 AM, Tedd Sperling <tedd@xxxxxxxxxxxx> wrote:

>
> > On Dec 10, 2016, at 10:25 AM, Ryan Pallas <derokorian@xxxxxxxxx> wrote:
> >
> > You have output before header call. If you turned on error_reporting ike
> > Chris mentioned, you would see that output had already started.
> > Specifically this line is output:
> >
> > print_r($_POST);
> >>
>
> Ok, so I took the print_r() out — so now what’s the problem? It still
> doesn’t work.
>
> The point of all this is it (the code “as-is”) has been working for the
> last 8 years — so why does it fail now?
>

It could have worked before it output buffering was configured. See
http://php.net/manual/en/book.outcontrol.php

My guess, is that it is not working now because the header.php file
contains some output. That's a guess considering because I haven't seen
that file.


>
> Cheers,
>
> tedd
>
> _______________
> tedd sperling
> tedd@xxxxxxxxxxxx
>
>
>
>
>
>