<span>转载请注明出处:http://blog.csdn.net/l1028386804/article/details/46010479 </span>
Quercus is a PHP5 engine developed by Caucho using pure Java. Released under the open source licensing agreement 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 JavaEE application containers (Resin, GlassFish, etc.), and you can also call some Java services such as JMS in PHP scripts. Quercus will pre-compile the PHP file into a .java file before executing it.
The following are the steps:
1 We treat the php project as a web project and place it under webapps, and create the WEB-INFlib directory inside. For example: webappsphpDemoWEB-INFlib
2 from http://quercus.caucho.com/. Download quercus-4.0.37.zip, extract the web.xml and put it under WEB-INF, extract the jar and put it under WEB-INFlib.
3 Start tomcat,
The above introduces Tomcat - a simple method (interlude) of running PHP on Tomcat, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.