In the past, many people used to run php in tomcat. many things need to be configured to run php in tomcat, such as apache server and phpmyadmin. Sometimes I think this is really annoying. I didn't really want to learn php, but sometimes I want to use a web application that has already been prepared by php. it's a little troublesome to run php in tomcat.
In the past, many people needed to configure many things to run php in tomcat, such as apache server and phpmyadmin. Sometimes I think this is really annoying. I didn't really want to learn php, but sometimes I want to use the web applications that php has already prepared, which is a little troublesome.
Resin, a web container that supports php. Now let's make it a coincidence that php can run in tomcat without any configuration.
Prepare the jar package for php running: inject-16.jar, javamail-141.jar, resin. jar
Prepare the web. xml file: web. xml
The above files can be obtained in the attachment below.
Tomcat web project under the standard directory webapps/webapp/[WEB-INF, jsp page, etc.]/[lib, web. xml] and so on
Uncommented content in web. xml in annotations. In this way, you can.
Testing is feasible and absolutely feasible. after the pilot package is changed to web. xml (in fact, it is a servlet)
On the first floor, Ye fan 520, I tested it. it seems I can't. How did Ren Xiong test it?
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.