Page 1 of 1

Issue in Running PHP Page on Tomcat

Posted: Tue Oct 06, 2009 4:27 am
by Malavika
Hi All,
I'm new bie to PHP, i have configured my web server(Tomcat) with PHP. When i try to run below code the page is displayed blank.

<?php
echo strlen("Hello world!");
?>

but, when i try to run below the page is successfully displayed
<?php phpinfo(); ?>

what is the issue in running first code??? Please let me know.

Thanks,
Malavika.

Re: Issue in Running PHP Page on Tomcat

Posted: Tue Oct 06, 2009 7:04 am
by Malavika
When i run the below code, the output is been displayed on console instead of on browser,

Code : <?php
echo "Hello";
?>

What is the issue over here? I'm using Tomcat 5.

Thanks,
Malavika.