Page 1 of 1

PHP on Tomcat ::Wierd Error

Posted: Fri Jun 12, 2009 6:53 am
by freehandle
Hi All,
PHP is made to work with Tomcat 5.5(Windows)

I have a PHP code which works only if I have phpinfo(); at the end of it for example :
_______________________
Code 1: Works(I get the output on browser)

<?php
echo "hello";
echo sqrt(16);
echo phpinfo();
?>
_______________________
Code 1: Does not work(I get blank screen on browser)

<?php
echo "hello";
echo sqrt(16);
?>
_______________________


So wherever I have phpinfo() at the end it works, when I remove phpinfo() it does not work.

Please let me know the solution for this:

The details are PHP 5 on Tomcat 5.5 (windows)

Regards
Freehandle