Re: Warning: Cannot modify header information - headers already sent by - classic
| From: | Daniel Brown | Date: | Thu, 19 May 2011 20:02:35 +0000 |
| Subject: | Re: Warning: Cannot modify header information - headers already sent by - classic | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312935@lists.php.net to get a copy of this message | ||
On Thu, May 19, 2011 at 15:45, Marc Guay <marc.guay@gmail.com> wrote:
> Hi folks,
>
> I'm running some code locally which should produce this fun error we
> all know and love: Warning: Cannot modify header information -
> headers already sent by... but does not. Switching from 5.3 to 5.2
> reveals the error and running it on another server with 5.2 also shows
> the error. I don't believe the version has anything to do with it,
> but who knows. I set error_reporting = E_ALL | E_STRICT and verified
> that display_errors = On, still nothing. Any ideas what could be
> allowing a header('Location:'); call to redirect without throwing an
> error after output has been sent to the browser?
See if output_buffering and output_handler are set the same in
your php.ini and/or phpinfo() output between working and non-working
versions.
More info on these can be found here:
http://php.net/manual/en/outcontrol.configuration.php
--
</Daniel P. Brown>
Network Infrastructure Manager
http://www.php.net/