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

From: Date: Tue, 15 Mar 2005 12:58:04 +0000
Subject: Re: Why is the behavior between Apache2 and Tomcat so different?
Groups: php.general 
Request: Send a blank email to php-general+get-210763@lists.php.net to get a copy of this message
It has not been an easy task. In fact, the configuration is running under PHP5/JBOSS! 1- I modified the web.xml to append the following: <servlet>
       <servlet-name>php</servlet-name>
       <servlet-class>
         net.php.servlet
       </servlet-class>
       <load-on-startup>1</load-on-startup>
</servlet> <servlet-mapping>
       <servlet-name>php</servlet-name>
       <url-pattern>*.php</url-pattern>
</servlet-mapping> 2- I copied over the phpsrvlt jar file under the jbossweb-tomcat50.sar 3- Patch the inside the jart the two property files to reference php5servlet and not phpsrvlt anymore (I am PHP5). 4- Start JBOSS and this is it... up to the various different behavior that I have, but I hope to be php.ini related!!! Enjoy it! David Joffrin www.etradinginnovations.co.uk
From: Burhan Khalid <phplist@meidomus.com> To: david joffrin <david_joffrin@hotmail.com> CC: php-general@lists.php.net Subject: Re: [PHP] Why is the behavior between Apache2 and Tomcat so different? Date: Tue, 15 Mar 2005 15:45:13 +0300 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?


« previous php.general (#210763) next »