Re: [PHP] Warning: Cannot modify header information - headers alreadysent by - classic

2011-05-20 Thread Carlos Medina

Am 20.05.2011 10:38, schrieb shiplu:

On Fri, May 20, 2011 at 1:45 AM, Marc Guaymarc.g...@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?

Marc




Marc, I think you should mimic this in command line using curl. You can
easily understand where the extra byte before headers are coming.



--


Shiplu Mokadd.im
My talks, http://talk.cmyweb.net
Follow me, http://twitter.com/shiplu
Innovation distinguishes between follower and leader


Delete de ? from all php files, if there are not using HTML but only php.

Regards

Carlos

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Warning: Cannot modify header information - headers alreadysent by - classic

2011-05-20 Thread Marc Guay
To everyone who did not read my original message but responded to it,

Thank you.

Marc

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php