PHP on Tomcat on Windows

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mateusz.adamus@gmail.com

    PHP on Tomcat on Windows

    Hello everyone

    Yesterday I tried to instal PHP on Tomcat running on Windows. I used
    this tutorial as my guide:


    First I did everything like it is said in tutorial and I got an error:
    net.php.servlet .send(Native Method)

    This error is also stated in comments to this tutorial so I applied
    "patches" stated in comments. It didn't work. So I restarted my PC and
    then error was gone (after like 3 hours of trying to get to it work).

    After my PC got up I entered http://localhost/test.php and saw that
    there was nothing on this page. When I looked into the source I saw
    standard HTML headers like coding page, <BODYtag but nothing else.
    My test.php page had this code in it:
    <?php
    echo "aaa";
    ?>

    Then I changed it to:
    <?php
    phpinfo();
    ?>
    and to my suprise there was a PHP info in my viewer. Although the site
    was suddenly stripped at the end. It looked like the PHP function
    couldn't execute completly for some reason.

    My question is: Why no other functions then phpinfo work? What should
    I do so that this PHP installation would work correctly?

    Kind regards

Working...