Re: header() not working?

From: Date: Sat, 10 Dec 2016 15:39:05 +0000
Subject: Re: header() not working?
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-325886@lists.php.net to get a copy of this message
On Sat, Dec 10, 2016 at 8:29 AM, Tedd Sperling <tedd@sperling.com> wrote: > > > On Dec 10, 2016, at 10:25 AM, Ryan Pallas <derokorian@gmail.com> 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@sperling.com > > > > > >

« previous php.general (#325886) next »