Using Tomcat with Php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • venugopaldikonda
    New Member
    • Jan 2008
    • 2

    #1

    Using Tomcat with Php

    I have already Tomcat5.0 installed on my PC.
    Can anyone tell me how to get started with php.
    What all to be installed and what should be referred to learn php?
    But when trying to deploy php file with code
    <html>
    <body>
    <?php
    echo hello world
    ?>
    </html>
    </body>

    I am getting the problem.
  • harshmaul
    Recognized Expert Contributor
    • Jul 2007
    • 490

    #2
    hi,
    try this code...

    Code:
    <?php
    echo "hello world";
    ?>
    NOTE: the quotes around hello world, and the trailing semi-solon

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #3
      Originally posted by venugopaldikond a
      I have already Tomcat5.0 installed on my PC.
      Can anyone tell me how to get started with php.
      What all to be installed and what should be referred to learn php?
      But when trying to deploy php file with code
      <html>
      <body>
      <?php
      echo hello world
      ?>
      </html>
      </body>

      I am getting the problem.
      It's also helpful if you tell us what error you get, or even what error you dont get.
      • Did php give an error on screen?
      • Was anything printed to the screen?
      • What was printed to the screen?
      • Have you placed the php file in the correct folder?


      Anything that could be of assitance.

      ALSO, please be more descriptive with your thread title.. you'll get more answers if you are so.

      Comment

      • ak1dnar
        Recognized Expert Top Contributor
        • Jan 2007
        • 1584

        #4
        Originally posted by venugopaldikond a
        I have already Tomcat5.0 installed on my PC.
        Can anyone tell me how to get started with php.
        What all to be installed and what should be referred to learn php?
        But when trying to deploy php file with code
        <html>
        <body>
        <?php
        echo hello world
        ?>
        </html>
        </body>

        I am getting the problem.
        Php with tomcat? I have never tried to use tomcat for php. I am not saying its immpossible, to do. but its not good for beginners. Try Apache Web Server instead.
        I found this http://wiki.apache.org/tomcat/UsingPhp you may try please, if you really wants to use tomcat as your web server.

        Comment

        • Markus
          Recognized Expert Expert
          • Jun 2007
          • 6092

          #5
          I'd adivse you to use XAMPP or PHPEasy (i use this).

          These are all bundled with php and mysql (phpmyadmin, also) and are easy to set up.

          I'd tell you to just use XAMPP because it's pretty good, but recently it's decided not to work for me... so i'm not trying to up it's users ;)

          I'm so spiteful.

          Happy php'ing!

          Comment

          Working...