Issue in Running PHP Page on Tomcat

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
Malavika
Forum Newbie
Posts: 2
Joined: Tue Oct 06, 2009 4:22 am

Issue in Running PHP Page on Tomcat

Post 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.
Malavika
Forum Newbie
Posts: 2
Joined: Tue Oct 06, 2009 4:22 am

Re: Issue in Running PHP Page on Tomcat

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