How can I configure PHP with my Tomcat
I have installed tomcat succesfully but if I want to use some php code. So where should I put this php code in my tomcat directory and开发者_JAVA百科 how I can configure php with tomcat. Any suggestions or link will be appreciated..
PHP/Java bridge as mentioned in the other answer is one option. The other would be to use the PHP runtime built in Java called Quercus
Tomcat is a Java Servlet Container first - it wasn't built to run PHP natively. There are however adapters, which allow you to run PHP on Tomcat, e.g.
- http://php-java-bridge.sourceforge.net/doc/tomcat6.php
If you only need to run PHP, you might be better off using a LAMP like setup.
精彩评论