: This article mainly introduces the simple method (episode) for running php in Tomcat. if you are interested in the PHP Tutorial, refer to it.
Reprinted please indicate the source: http://blog.csdn.net/l1028386804/article/details/46010479
Quercus is a PHP5 engine developed by Caucho using pure Java. Released based on the open source authorization protocol GPL.
Quercus comes with many PHP modules and extensions such as PDF, PDO, MySQL, and JSON. You can use this engine to run PHP programs in some Java EE application containers (Resin, GlassFish, etc.), or call some Java services such as JMS in the PHP script. Quercus will compile the php file into a. java file in advance and then execute it.
The steps are as follows:
1 we put the php project as a web project under webapps, and build the WEB-INF \ lib directory in it. Example: webapps \ phpDemo \ WEB-INF \ lib
2 from http://quercus.caucho.com /. Download quercus-4.0.37.zip, extract the web. xml into the WEB-INF, extract the jar into the WEB-INF \ lib.
3. start tomcat,
The above introduces the simple method (episode) for running php in Tomcat, including some content, and hopes to help those who are interested in PHP tutorials.