Tomcat-a simple way for Tomcat to run php (episode), tomcatphp
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. For example:Web apps \ 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,