Re: Why is the behavior between Apache2 and Tomcat so different?

From: Date: Tue, 15 Mar 2005 12:57:38 +0000
Subject: Re: Why is the behavior between Apache2 and Tomcat so different?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-210762@lists.php.net to get a copy of this message
"Cannot modify header information - headers already sent ...." output buffering is off on tomcat? check the php.ini or did some error message happen before this - which will cause this error since the error was sent to the browser before your headers. In which case fix it by turning off php.ini error reporting (display_errors: off) cheers On Tue, 15 Mar 2005 15:45:13 +0300, Burhan Khalid <phplist@meidomus.com> wrote: > david joffrin wrote: > > Hi, > > > > I have the same piece of PHP script running on either Apache2 or Tomcat. > > On Tomcat, I have the folllowing errors: > > 1- Cannot modify header information - headers already sent .... > > OR 2- Undefined index: error in ... > > > > For one, I think this is because I am using the header PHP function. > > For two, I think this is because there is from time to time a http > > request parameter ("error") which not always defined. > > Check your error reporting levels. I bet they differ (check in php.ini > and any error_reporting() functions) > > By the way, I'm curious -- how did you get PHP to work on Tomcat? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#210762) next »