Re: [PHP] header() not working?
[email protected] (Ryan Pallas)
| Newsgroups | php.general |
|---|---|
| Message-ID | <CAObuZdv7ELC563SU1QhOekFju+QNPFfns5hN2fKyq_Bw5Nw-uw@mail.gmail.com> |
On Sat, Dec 10, 2016 at 8:29 AM, Tedd Sperling <[email protected]> wrote: > > > On Dec 10, 2016, at 10:25 AM, Ryan Pallas <[email protected]> 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 > [email protected] > > > > > >