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 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.
If you only need to run PHP, you might be better off using a LAMP like setup.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With