PHP on Tomcat ::Wierd Error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
freehandle
Forum Newbie
Posts: 1
Joined: Fri Jun 12, 2009 6:48 am

PHP on Tomcat ::Wierd Error

Post 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
Post Reply